mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 03:55:03 -05: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
@ -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…
Reference in New Issue
Block a user