aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-08-16 13:25:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-08-16 13:25:30 +0000
commit2646af106b04480fa5b063625deb5feb25c8df65 (patch)
tree5402cec65abea60709372266348ab0199c5c19c7 /lib/url.c
parent7261b4556bfa2ce7bcabd9d63f29cfdafe14686d (diff)
allow a custom "Accept-Encoding:" header override the internally set one
that gets set with CURLOPT_ENCODING
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/url.c b/lib/url.c
index 23100fc13..8099688df 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3348,14 +3348,6 @@ static CURLcode SetupConnection(struct connectdata *conn,
}
}
- if(data->set.encoding) {
- Curl_safefree(conn->allocptr.accept_encoding);
- conn->allocptr.accept_encoding =
- aprintf("Accept-Encoding: %s\015\012", data->set.encoding);
- if(!conn->allocptr.accept_encoding)
- return CURLE_OUT_OF_MEMORY;
- }
-
conn->bytecount = 0;
conn->headerbytecount = 0;