]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/http.cc
MemBuf implements Packable interface
[thirdparty/squid.git] / src / http.cc
index 45bb1a895b94c4e0b14805b3d4e2a7ae79b6cfb6..de27dcc2400d70a7421150b2080cc0c1e24a2198 100644 (file)
@@ -2194,7 +2194,6 @@ HttpStateData::buildRequestPrefix(MemBuf * mb)
     /* build and pack headers */
     {
         HttpHeader hdr(hoRequest);
-        Packer p;
         httpBuildRequestHeader(request, entry, fwd->al, &hdr, flags);
 
         if (request->flags.pinned && request->flags.connectionAuth)
@@ -2202,8 +2201,7 @@ HttpStateData::buildRequestPrefix(MemBuf * mb)
         else if (hdr.has(HDR_AUTHORIZATION))
             request->flags.authSent = true;
 
-        packerToMemInit(&p, mb);
-        hdr.packInto(&p);
+        hdr.packInto(mb);
         hdr.clean();
     }
     /* append header terminator */