From 46be570463fd7db516d878f560ecaacffe74147a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 31 Oct 2010 15:41:28 +0000 Subject: [PATCH] Proper HTTP version display --- lib/utils/google.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/google.py b/lib/utils/google.py index 4833c8a71..9ac4dbc9e 100644 --- a/lib/utils/google.py +++ b/lib/utils/google.py @@ -8,6 +8,7 @@ See the file 'doc/COPYING' for copying permission """ import cookielib +import httplib import re import socket import urllib2 @@ -96,9 +97,8 @@ class Google: try: conn = self.opener.open(url) - requestMsg = "HTTP request:\nGET %s HTTP/1.1\n" % url - requestMsg += "\n".join(["%s: %s" % (header, value) for header, value in conn.headers.items()]) - requestMsg += "\n" + requestMsg = "HTTP request:\nGET %s" % url + requestMsg += " %s" % httplib.HTTPConnection._http_vsn_str logger.log(9, requestMsg) page = conn.read()