]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Tue, 11 Aug 2015 00:12:10 +0000 (00:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Tue, 11 Aug 2015 00:12:10 +0000 (00:12 +0000)
src/HttpHeader.cc

index d40cad29d51a6b9ae27de3477699130f2181358d..368253fe208bc6df06f65e69bfb34ccb277f3157 100644 (file)
@@ -556,7 +556,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen)
             return reset();
         }
 
-        // XXX: RFC 7230 Section 3.3.3 item #4 requires sending a 502 error in 
+        // XXX: RFC 7230 Section 3.3.3 item #4 requires sending a 502 error in
         // several cases that we do not yet cover. TODO: Rewrite to cover more.
         if (e->id == Http::HdrType::CONTENT_LENGTH && (e2 = findEntry(e->id)) != nullptr) {
             if (e->value != e2->value) {
@@ -614,8 +614,7 @@ HttpHeader::parse(const char *header_start, size_t hdrLen)
         delById(Http::HdrType::CONTENT_LENGTH);
         // RFC 7230 section 3.3.3 #4: ignore Content-Length conflicts with Transfer-Encoding
         conflictingContentLength_ = false;
-    } else
-    if (conflictingContentLength_) {
+    } else if (conflictingContentLength_) {
         // ensure our callers do not see the conflicting Content-Length value
         delById(Http::HdrType::CONTENT_LENGTH);
     }