]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- changed internal structure of HttpBody to use MemBuf;
authorrousskov <>
Sat, 6 Jun 1998 03:25:52 +0000 (03:25 +0000)
committerrousskov <>
Sat, 6 Jun 1998 03:25:52 +0000 (03:25 +0000)
  no more inconsistencies with body.size

src/urn.cc

index e40e78b19d1115fed5b3474d243a690adc69b8ba..0b595535a09d82b0911ae4fc25795e8ca62006c5 100644 (file)
@@ -1,7 +1,7 @@
 
 /*
  *
- * $Id: urn.cc,v 1.35 1998/06/04 18:57:19 wessels Exp $
+ * $Id: urn.cc,v 1.36 1998/06/05 21:25:52 rousskov Exp $
  *
  * DEBUG: section 52    URN Parsing
  * AUTHOR: Kostas Anagnostakis
@@ -284,7 +284,7 @@ urnHandleReply(void *data, char *buf, ssize_t size)
     } else if (min_u) {
        httpHeaderPutStr(&rep->header, HDR_LOCATION, min_u->url);
     }
-    httpBodySet(&rep->body, mb.buf, mb.size + 1, memBufFreeFunc(&mb));
+    httpBodySet(&rep->body, &mb);
     httpReplySwapOut(rep, e);
     storeComplete(e);
     memFree(MEM_4K_BUF, buf);
@@ -293,7 +293,7 @@ urnHandleReply(void *data, char *buf, ssize_t size)
        safe_free(urls[i].host);
     }
     safe_free(urls);
-    /* mb was frozen with memBufFreeFunc call, so we must not clean it */
+    /* mb was absorbed in httpBodySet call, so we must not clean it */
     storeUnregister(urlres_e, urnState);
     storeUnlockObject(urlres_e);
     storeUnlockObject(urnState->entry);