From: wessels <> Date: Tue, 14 Nov 2000 06:30:26 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1771 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c867fef1cac8de4c6d97bd10b4a45ab30e17c2e;p=thirdparty%2Fsquid.git DW: - httpBuildVersion fixes from 2.4 branch --- diff --git a/src/net_db.cc b/src/net_db.cc index 0e1b24cfce..c65d80b792 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -1,6 +1,6 @@ /* - * $Id: net_db.cc,v 1.152 2000/11/13 12:25:12 adrian Exp $ + * $Id: net_db.cc,v 1.153 2000/11/13 23:30:26 wessels Exp $ * * DEBUG: section 38 Network Measurement Database * AUTHOR: Duane Wessels @@ -929,7 +929,7 @@ netdbBinaryExchange(StoreEntry * s) struct in_addr addr; storeBuffer(s); httpReplyReset(reply); - httpBuildVersion(version,1,0); + httpBuildVersion(&version, 1, 0); httpReplySetHeaders(reply, version, HTTP_OK, "OK", NULL, -1, squid_curtime, -2); httpReplySwapOut(reply, s); @@ -972,7 +972,7 @@ netdbBinaryExchange(StoreEntry * s) memFree(buf, MEM_4K_BUF); #else httpReplyReset(reply); - httpBuildVersion(&version,1,0); + httpBuildVersion(&version, 1, 0); httpReplySetHeaders(reply, version, HTTP_BAD_REQUEST, "Bad Request", NULL, -1, squid_curtime, -2); storeAppendPrintf(s, "NETDB support not compiled into this Squid cache.\n"); @@ -1000,7 +1000,7 @@ netdbExchangeStart(void *data) } requestLink(ex->r); assert(NULL != ex->r); - ex->r->http_ver = 1.0; + httpBuildVersion(&ex->r->http_ver, 1, 0); ex->e = storeCreateEntry(uri, uri, null_request_flags, METHOD_GET); ex->buf_sz = 4096; ex->buf = memAllocate(MEM_4K_BUF);