aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-02-12 21:13:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-02-12 21:13:47 +0000
commit28b932fb4ef14b8b9ebda6823c98fbedad6be4b2 (patch)
tree3398b7e7ae05437ee9e29168212ec6c215d299c3 /lib/transfer.c
parenta63174114193addcc147d8de8e71b66568e77639 (diff)
- Shmulik Regev fixed so that the final CRLF of HTTP response headers are sent
to the debug callback. - Shmulik Regev added CURLOPT_HTTP_CONTENT_DECODING and CURLOPT_HTTP_TRANSFER_DECODING that if set to zero will disable libcurl's internal decoding of content or transfer encoded content. This may be preferable in cases where you use libcurl for proxy purposes or similar. The command line tool got a --raw option to disable both at once.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 828108204..cf4264cc8 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -689,6 +689,9 @@ CURLcode Curl_readwrite(struct connectdata *conn,
k->keepon &= ~KEEP_READ;
}
+ if(data->set.verbose)
+ Curl_debug(data, CURLINFO_HEADER_IN,
+ k->str_start, headerlen, conn);
break; /* exit header line loop */
}
@@ -1286,7 +1289,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
Make sure that ALL_CONTENT_ENCODINGS contains all the
encodings handled here. */
#ifdef HAVE_LIBZ
- switch (k->content_encoding) {
+ switch (conn->data->set.http_ce_skip ?
+ IDENTITY : k->content_encoding) {
case IDENTITY:
#endif
/* This is the default when the server sends no