Commit 062e5bfd authored by Gisle Vanem's avatar Gisle Vanem Committed by Daniel Stenberg
Browse files

transfer: the recent sessionhandle change broke CURL_DOES_CONVERSIONS

parent e4a1888b
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -101,8 +101,10 @@ 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)) {
  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;