summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
authorcarsonzhu <carsonzhu@tencent.com>2022-04-02 17:06:27 +0800
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2022-04-03 18:58:56 +0900
commit839dd2caf77863503d18252a1aff16cd1dde274c (patch)
tree0c45690d8b6228b24fa301395b9995347ffb6844 /src/HttpRequestCommand.cc
parentc651d563d079f54c47ab8dd87061f662881a2e19 (diff)
add no-want-digest-header option
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc
index a2b8e7ef..3ef3887c 100644
--- a/src/HttpRequestCommand.cc
+++ b/src/HttpRequestCommand.cc
@@ -99,6 +99,8 @@ createHttpRequest(const std::shared_ptr<Request>& req,
httpRequest->setOption(option.get());
httpRequest->setProxyRequest(proxyRequest);
httpRequest->setAcceptMetalink(rg->getDownloadContext()->getAcceptMetalink());
+ httpRequest->setNoWantDigest(option->getAsBool(PREF_NO_WANT_DIGEST_HEADER));
+
if (option->getAsBool(PREF_HTTP_ACCEPT_GZIP)) {
httpRequest->enableAcceptGZip();
}