Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46be570

Browse files
committed
Proper HTTP version display
1 parent f3cc416 commit 46be570

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/utils/google.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99

1010
import cookielib
11+
import httplib
1112
import re
1213
import socket
1314
import urllib2
@@ -96,9 +97,8 @@ def search(self, googleDork):
9697
try:
9798
conn = self.opener.open(url)
9899

99-
requestMsg = "HTTP request:\nGET %s HTTP/1.1\n" % url
100-
requestMsg += "\n".join(["%s: %s" % (header, value) for header, value in conn.headers.items()])
101-
requestMsg += "\n"
100+
requestMsg = "HTTP request:\nGET %s" % url
101+
requestMsg += " %s" % httplib.HTTPConnection._http_vsn_str
102102
logger.log(9, requestMsg)
103103

104104
page = conn.read()

0 commit comments

Comments
 (0)