aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/url.c b/lib/url.c
index 264dd7df2..ee4c7729d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2724,12 +2724,13 @@ static CURLcode CreateConnection(struct SessionHandle *data,
}
}
- if(data->set.encoding) {
- if(conn->allocptr.accept_encoding)
- free(conn->allocptr.accept_encoding);
- conn->allocptr.accept_encoding =
- aprintf("Accept-Encoding: %s\015\012", data->set.encoding);
- }
+ if(data->set.encoding) {
+ if(conn->allocptr.accept_encoding)
+ free(conn->allocptr.accept_encoding);
+ conn->allocptr.accept_encoding =
+ aprintf("Accept-Encoding: %s\015\012", data->set.encoding);
+ }
+
conn->bytecount = 0;
conn->headerbytecount = 0;