aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2013-08-20 11:42:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-08-20 11:42:34 +0200
commit062e5bfd9c3a05b9234144dc782e232804916b5e (patch)
tree600db99147c7fad4f7b02c65d1a083e5bc12e7e8
parente4a1888bd09e4fe1f312401cd41597d5ef34d0fd (diff)
transfer: the recent sessionhandle change broke CURL_DOES_CONVERSIONS
-rw-r--r--lib/transfer.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index e899d19c4..31553eb46 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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