curl-library
[Patch] transfer.c
Date: Tue, 20 Aug 2013 09:37:07 +0200
A change in 'struct SessionHandle' broke the
'CURL_DOES_CONVERSIONS' code in transfer.c:
--- Git-latest/lib/transfer.c 2013-08-20 06:52:36 +0000
+++ lib/transfer.c 2013-08-20 07:05:06 +0000
@@ -101,8 +101,10 @@
#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;
---------
BTW.
Building with 'CURL_DOES_CONVERSIONS' gives me extra newlines
in CURLOPT_VERBOSE output. I cannot see why.
--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-20