]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bootstrapped
authorAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 31 May 2012 00:20:44 +0000 (18:20 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 31 May 2012 00:20:44 +0000 (18:20 -0600)
src/adaptation/ecap/XactionRep.cc
src/adaptation/icap/ModXact.cc

index ceb5668cbdec1d29b82d4a4aa3014c9cde657767..85fecf563a177a03dac30a41abad2aacd80433ca 100644 (file)
@@ -145,7 +145,7 @@ Adaptation::Ecap::XactionRep::usernameValue() const
         if (char const *name = request->auth_user_request->username())
             return libecap::Area::FromTempBuffer(name, strlen(name));
         else if (request->extacl_user.defined() && request->extacl_user.size())
-            return libecap::Area::FromTempBuffer(request->extacl_user.rawBuf(), 
+            return libecap::Area::FromTempBuffer(request->extacl_user.rawBuf(),
                                                  request->extacl_user.size());
     }
 #endif
index b2c0502a9c8a44cf543a77bc89f8d068167a3850..8891606579eee0ab683809b611ec8f9cc90f4d3b 100644 (file)
@@ -1345,11 +1345,11 @@ void Adaptation::Icap::ModXact::makeRequestHeaders(MemBuf &buf)
         String vh=virgin.header->header.getByName("Proxy-Authorization");
         buf.Printf("Proxy-Authorization: " SQUIDSTRINGPH "\r\n", SQUIDSTRINGPRINT(vh));
     } else if (request->extacl_user.defined() && request->extacl_user.size() && request->extacl_passwd.defined() && request->extacl_passwd.size()) {
-      char loginbuf[256];
-      snprintf(loginbuf, sizeof(loginbuf), SQUIDSTRINGPH ":" SQUIDSTRINGPH,
-              SQUIDSTRINGPRINT(request->extacl_user),
-              SQUIDSTRINGPRINT(request->extacl_passwd));
-      buf.Printf("Proxy-Authorization: Basic %s\r\n", old_base64_encode(loginbuf));
+        char loginbuf[256];
+        snprintf(loginbuf, sizeof(loginbuf), SQUIDSTRINGPH ":" SQUIDSTRINGPH,
+                 SQUIDSTRINGPRINT(request->extacl_user),
+                 SQUIDSTRINGPRINT(request->extacl_passwd));
+        buf.Printf("Proxy-Authorization: Basic %s\r\n", old_base64_encode(loginbuf));
     }
 
     // share the cross-transactional database records if needed