]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bootstrapped
authorAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 15 Jun 2010 07:21:57 +0000 (01:21 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 15 Jun 2010 07:21:57 +0000 (01:21 -0600)
src/ChunkedCodingParser.cc
src/adaptation/icap/ModXact.cc
src/adaptation/icap/ModXact.h

index 66e80ce134e52ddcec773666f42e5254968c88ec..80001f6611fb1818fe1f9cb95a032d61c6f8e768 100644 (file)
@@ -240,12 +240,12 @@ void ChunkedCodingParser::parseChunkExtension(const char *startExt, const char *
     for (const char *p = startExt; p < endExt;) {
 
         while (*p == ' ' || *p == '\t') ++p; // skip spaces before ';'
-        
+
         if (*p++ != ';') // each ext name=value pair is preceded with ';'
             return;
-        
+
         while (*p == ' ' || *p == '\t') ++p; // skip spaces before name
-        
+
         if (p >= endExt)
             return; // malformed extension: ';' without ext name=value pair
 
index 1fcccd70b432886123ca020c5e291f3d8c23ec72..9fc83837c34e9ed8ca578150bfab51b34f4f40b8 100644 (file)
@@ -934,7 +934,7 @@ void Adaptation::Icap::ModXact::prepPartialBodyEchoing(uint64_t pos)
 
     // check that use-original-body=N does not point beyond buffered data
     const uint64_t virginDataEnd = virginConsumed +
-        virgin.body_pipe->buf().contentSize();
+                                   virgin.body_pipe->buf().contentSize();
     Must(pos <= virginDataEnd);
     virginBodySending.progress(static_cast<size_t>(pos));
 
@@ -1338,7 +1338,7 @@ void Adaptation::Icap::ModXact::makeAllowHeader(MemBuf &buf)
     const bool allow206out = state.allowedPostview206 = shouldAllow206out();
 
     debugs(93,9, HERE << "Allows: " << allow204in << allow204out <<
-        allow206in << allow206out);
+           allow206in << allow206out);
 
     const bool allow204 = allow204in || allow204out;
     const bool allow206 = allow206in || allow206out;
@@ -1360,7 +1360,7 @@ void Adaptation::Icap::ModXact::makeAllowHeader(MemBuf &buf)
         allowHeader = "Allow: 204\r\n";
     else if (allow206)
         allowHeader = "Allow: 206\r\n";
-    
+
     if (allowHeader) { // may be nil if only allow204in is true
         buf.append(allowHeader, strlen(allowHeader));
         debugs(93,5, HERE << "Will write " << allowHeader);
@@ -1473,7 +1473,7 @@ bool Adaptation::Icap::ModXact::shouldAllow204()
 bool Adaptation::Icap::ModXact::shouldAllow206any()
 {
     return TheConfig.allow206_enable && service().allows206() &&
-        virginBody.expected(); // no need for 206 without a body
+           virginBody.expected(); // no need for 206 without a body
 }
 
 // decides whether to allow 206 responses in preview mode
index 7ee51a0f7075d1dfde1c4610194610f7ef1aae5e..1eb5cc7b2436ab99d063361c218e18f36ee0b0a2 100644 (file)
@@ -297,8 +297,8 @@ private:
         // will not use virgin.body_pipe
         bool doneConsumingVirgin() const {
             return writing >= writingAlmostDone
-                && ((sending == sendingAdapted && !readyForUob) ||
-                    sending == sendingDone);
+                   && ((sending == sendingAdapted && !readyForUob) ||
+                       sending == sendingDone);
         }
 
         // parsed entire ICAP response from the ICAP server