/*
*
- * $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
} 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);
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);