Commit 20fe347
authored
curl: Fix response status parsing (#633)
The response headers can have multiple steps in them, example:
"HTTP/1.1 200 Connection established",
"",
"HTTP/1.1 400 Bad Request",
"Content-Security-Policy: default-src 'none'; sandbox",
"Content-Type: text/plain; charset=utf-8",
"Strict-Transport-Security: max-age=31536000",
"X-Content-Type-Options: nosniff",
before this would be reported as 200 incorrectly instead of 400 bad request.
this fixes that issue
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>1 parent 3707cdb commit 20fe347
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
256 | 266 | | |
| 267 | + | |
257 | 268 | | |
258 | | - | |
259 | 269 | | |
260 | 270 | | |
261 | | - | |
262 | | - | |
| 271 | + | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
0 commit comments