]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
transfer: the recent sessionhandle change broke CURL_DOES_CONVERSIONS
authorGisle Vanem <gvanem@broadpark.no>
Tue, 20 Aug 2013 09:42:34 +0000 (11:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Aug 2013 09:42:34 +0000 (11:42 +0200)
lib/transfer.c

index e899d19c486c71afc918adf37b87d89d45400345..31553eb46f28b095fc20cca5064352bb7afa01ba 100644 (file)
@@ -101,11 +101,13 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp)
 #ifdef CURL_DOES_CONVERSIONS
   bool sending_http_headers = FALSE;
 
-  if((conn->handler->protocol&(CURLPROTO_HTTP|CURLPROTO_RTSP)) &&
-     (data->state.proto.http->sending == HTTPSEND_REQUEST)) {
-    /* We're sending the HTTP request headers, not the data.
-       Remember that so we don't re-translate them into garbage. */
-    sending_http_headers = TRUE;
+  if(conn->handler->protocol&(CURLPROTO_HTTP|CURLPROTO_RTSP)) {
+    const struct HTTP *http = data->req.protop;
+
+    if(http->sending == HTTPSEND_REQUEST)
+      /* We're sending the HTTP request headers, not the data.
+         Remember that so we don't re-translate them into garbage. */
+      sending_http_headers = TRUE;
   }
 #endif