http: close the stream (not connection) on time condition abort

Closes #8664
This commit is contained in:
Daniel Stenberg 2022-04-01 13:22:58 +02:00
parent b5a9680577
commit 3fa634a337
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -2955,7 +2955,7 @@ CURLcode Curl_http_firstwrite(struct Curl_easy *data,
infof(data, "Simulate a HTTP 304 response!");
/* we abort the transfer before it is completed == we ruin the
re-use ability. Close the connection */
connclose(conn, "Simulated 304 handling");
streamclose(conn, "Simulated 304 handling");
return CURLE_OK;
}
} /* we have a time condition */