]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
leftover bug from http version changes
authorwessels <>
Sat, 9 Dec 2000 12:29:55 +0000 (12:29 +0000)
committerwessels <>
Sat, 9 Dec 2000 12:29:55 +0000 (12:29 +0000)
src/htcp.cc

index 043f9386b91cf885b478b7dc0414e0d27611c5ed..ae0e018a935398447157af5b71a3948d98af3c56 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: htcp.cc,v 1.32 2000/11/01 04:50:25 wessels Exp $
+ * $Id: htcp.cc,v 1.33 2000/12/09 05:29:55 wessels Exp $
  *
  * DEBUG: section 31    Hypertext Caching Protocol
  * AUTHOR: Duane Wesssels
@@ -886,7 +886,8 @@ htcpQuery(StoreEntry * e, request_t * req, peer * p)
     MemBuf mb;
     http_state_flags flags;
     memset(&flags, '\0', sizeof(flags));
-    snprintf(vbuf, sizeof(vbuf), "%3.1f", req->http_ver);
+    snprintf(vbuf, sizeof(vbuf), "%d/%d",
+       req->http_ver.major, req->http_ver.minor);
     stuff.op = HTCP_TST;
     stuff.rr = RR_REQUEST;
     stuff.f1 = 1;