]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: close the stream (not connection) on time condition abort
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Apr 2022 11:22:58 +0000 (13:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Apr 2022 11:22:59 +0000 (13:22 +0200)
Closes #8664

lib/http.c

index 6445f98f8d0de8f593f23c4711f52e1421135c3f..63cc748e8b97b95d48ff44dfaa52216ec45d6005 100644 (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 */