]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorSource Maintenance <squidadm@squid-cache.org>
Thu, 26 Feb 2015 18:12:07 +0000 (18:12 +0000)
committerSource Maintenance <squidadm@squid-cache.org>
Thu, 26 Feb 2015 18:12:07 +0000 (18:12 +0000)
lib/profiler/xprof_type.h
src/clients/Client.cc
src/http.cc
src/http/one/ResponseParser.cc
src/http/one/ResponseParser.h

index 29bdeffcf75267c3d5a51ffe860b35a02263c074..5474c3e9515e342c704f637f15f62f5f4b8ee413 100644 (file)
@@ -46,6 +46,7 @@ typedef enum {
     XPROF_HttpHeader_getCc,
     XPROF_HttpHeaderParse,
     XPROF_HttpMsg_httpMsgParseStep,
+    XPROF_HttpParserParseReplyLine,
     XPROF_HttpParserParseReqLine,
     XPROF_httpRequestFree,
     XPROF_HttpServer_parseOneRequest,
index b663ff2554559d39ad7778a1840a438d1e25f1d6..6754a0695a37ee2a74e5840cc9c75e1eeece2e80 100644 (file)
@@ -983,7 +983,7 @@ Client::calcBufferSpaceToReserve(size_t space, const size_t wantSpace) const
 
 #if USE_ADAPTATION
     if (responseBodyBuffer) {
-        return 0;      // Stop reading if already overflowed waiting for ICAP to catch up
+        return 0;   // Stop reading if already overflowed waiting for ICAP to catch up
     }
 
     if (virginBodyDestination != NULL) {
index 2311329e17dfc8eb770af6b6bf8f57f81dc05abb..f5a9b3539735c5e53405cbfcf5a11f8f96bd12bf 100644 (file)
@@ -86,12 +86,12 @@ static void copyOneHeaderFromClientsideRequestToUpstreamRequest(const HttpHeader
 void httpHdrAdd(HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer &al, HeaderWithAclList &headers_add);
 
 HttpStateData::HttpStateData(FwdState *theFwdState) :
-        AsyncJob("HttpStateData"),
-        Client(theFwdState),
-        lastChunk(0),
-        httpChunkDecoder(NULL),
-        payloadSeen(0),
-        payloadTruncated(0)
+    AsyncJob("HttpStateData"),
+    Client(theFwdState),
+    lastChunk(0),
+    httpChunkDecoder(NULL),
+    payloadSeen(0),
+    payloadTruncated(0)
 {
     debugs(11,5,HERE << "HttpStateData " << this << " created");
     ignoreCacheControl = false;
@@ -1221,7 +1221,7 @@ HttpStateData::readReply(const CommIoCbParams &io)
     }
 
         /* Continue to process previously read data */
-        break;
+    break;
 
     case Comm::ENDFILE: // close detected by 0-byte read
         eof = 1;
@@ -1230,7 +1230,7 @@ HttpStateData::readReply(const CommIoCbParams &io)
         /* Continue to process previously read data */
         break;
 
-        // case Comm::COMM_ERROR:
+    // case Comm::COMM_ERROR:
     default: // no other flags should ever occur
         debugs(11, 2, io.conn << ": read failure: " << xstrerr(rd.xerrno));
 
index d3bfc9bc918b554909075f1fe8ed921a95ab947b..84996ab40f6ea53514d13a9c6bb9519fff9528ef 100644 (file)
@@ -122,8 +122,8 @@ Http::One::ResponseParser::parseResponseFirstLine()
         // tolerant parser MAY accept any of SP, HTAB, VT (%x0B), FF (%x0C), or bare CR
         // as whitespace between status-line fields
         WspDelim += CharacterSet::HTAB
-                  + CharacterSet("VT,FF","\x0B\x0C")
-                  + CharacterSet::CR;
+                    + CharacterSet("VT,FF","\x0B\x0C")
+                    + CharacterSet::CR;
     }
 
     if (msgProtocol_.protocol != AnyP::PROTO_NONE) {
@@ -236,3 +236,4 @@ Http::One::ResponseParser::parse(const SBuf &aBuf)
 
     return !needsMoreData();
 }
+
index 93f8fd0b8d36c8f7e613b67baa846130d37c6770..54cdf69ca2484ba8532abd33bc00e56fb5a33fe2 100644 (file)
@@ -55,3 +55,4 @@ private:
 } // namespace Http
 
 #endif /* _SQUID_SRC_HTTP_ONE_RESPONSEPARSER_H */
+