mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:14:17 +03:00
http: empty reply connection are not left intact
... so mark the connection as closed in this condition to prevent that verbose message to wrongly appear. Reported-by: Matt Holt Bug: https://twitter.com/mholt6/status/1352130240265375744 Closes #6503
This commit is contained in:
parent
c977a6d0dc
commit
e8710633ed
1 changed files with 2 additions and 0 deletions
|
|
@ -1596,6 +1596,8 @@ CURLcode Curl_http_done(struct Curl_easy *data,
|
|||
read from the HTTP server (that counts), this can't be right so we
|
||||
return an error here */
|
||||
failf(data, "Empty reply from server");
|
||||
/* Mark it as closed to avoid the "left intact" message */
|
||||
streamclose(conn, "Empty reply from server");
|
||||
return CURLE_GOT_NOTHING;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue