Commit b6a806a
committed
fix: do not overwrite with empty file if the server returns HTTP 304 when
When `If-None-Match` is sent, the server may return HTTP 304 Not Modified
with empty response body.
This is problematic, as our code was assuming that there is always a file returned by the server if the HTTP status code < 400If-None-Match is sent1 parent 16a6dfb commit b6a806a
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
| 1131 | + | |
1131 | 1132 | | |
1132 | | - | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1133 | 1136 | | |
1134 | 1137 | | |
1135 | 1138 | | |
| |||
1140 | 1143 | | |
1141 | 1144 | | |
1142 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
1143 | 1148 | | |
1144 | 1149 | | |
1145 | 1150 | | |
1146 | 1151 | | |
1147 | 1152 | | |
1148 | 1153 | | |
1149 | 1154 | | |
1150 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1151 | 1162 | | |
1152 | 1163 | | |
1153 | 1164 | | |
| |||
0 commit comments