summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-11-23 14:11:43 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-11-23 14:11:43 +0900
commit795a0474df35c56307151cca5787cb8ae2df06e5 (patch)
tree2197ade3cb882db0a82dfde676e0eff27e618930 /src/HttpResponseCommand.cc
parent20a7c43f2da248bb17f1338d00d663157dce2156 (diff)
clang-format-5.0
Diffstat (limited to 'src/HttpResponseCommand.cc')
-rw-r--r--src/HttpResponseCommand.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc
index d0e44803..6009dc2f 100644
--- a/src/HttpResponseCommand.cc
+++ b/src/HttpResponseCommand.cc
@@ -279,9 +279,8 @@ bool HttpResponseCommand::executeInternal()
// we ignore content-length when inflate is required
fe->setLength(0);
if (req->getMethod() == Request::METHOD_GET &&
- (totalLength != 0 ||
- !httpResponse->getHttpHeader()->defined(
- HttpHeader::CONTENT_LENGTH))) {
+ (totalLength != 0 || !httpResponse->getHttpHeader()->defined(
+ HttpHeader::CONTENT_LENGTH))) {
// DownloadContext::knowsTotalLength() == true only when
// server says the size of file is 0 explicitly.
getDownloadContext()->markTotalLengthIsUnknown();
@@ -422,9 +421,8 @@ bool HttpResponseCommand::handleOtherEncoding(
httpResponse.get(), getContentEncodingStreamFilter(httpResponse.get()));
// If chunked transfer-encoding is specified, we have to read end of
// chunk markers(0\r\n\r\n, for example).
- bool chunkedUsed =
- streamFilter &&
- streamFilter->getName() == ChunkedDecodingStreamFilter::NAME;
+ bool chunkedUsed = streamFilter && streamFilter->getName() ==
+ ChunkedDecodingStreamFilter::NAME;
// For zero-length file, check existing file comparing its size
if (!chunkedUsed && getDownloadContext()->knowsTotalLength() &&