]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
avoid unnecessary SBuf copies
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 25 Feb 2016 16:44:46 +0000 (17:44 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 25 Feb 2016 16:44:46 +0000 (17:44 +0100)
src/HttpRequest.cc

index 5460e4fa98f16db1494aa06018cf9433717cf8fb..e7890f90c13405b5cf6181be92ad98799c43e29d 100644 (file)
@@ -661,7 +661,7 @@ HttpRequest::storeId()
 {
     if (store_id.size() != 0) {
         debugs(73, 3, "sent back store_id: " << store_id);
-        return SBuf(StringToSBuf(store_id));
+        return StringToSBuf(store_id);
     }
     debugs(73, 3, "sent back effectiveRequestUrl: " << effectiveRequestUri());
     return effectiveRequestUri();