summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc
index 407b0c38..4a7d3c8b 100644
--- a/src/HttpRequestCommand.cc
+++ b/src/HttpRequestCommand.cc
@@ -96,6 +96,11 @@ createHttpRequest(const SharedHandle<Request>& req,
httpRequest->setProxyRequest(proxyRequest);
httpRequest->addAcceptType(rg->getAcceptTypes().begin(),
rg->getAcceptTypes().end());
+ if(option->getAsBool(PREF_HTTP_ACCEPT_GZIP)) {
+ httpRequest->enableAcceptGZip();
+ } else {
+ httpRequest->disableAcceptGZip();
+ }
if(option->getAsBool(PREF_HTTP_NO_CACHE)) {
httpRequest->enableNoCache();
} else {