Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3cc416 commit 46be570Copy full SHA for 46be570
1 file changed
lib/utils/google.py
@@ -8,6 +8,7 @@
8
"""
9
10
import cookielib
11
+import httplib
12
import re
13
import socket
14
import urllib2
@@ -96,9 +97,8 @@ def search(self, googleDork):
96
97
try:
98
conn = self.opener.open(url)
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"
+ requestMsg = "HTTP request:\nGET %s" % url
+ requestMsg += " %s" % httplib.HTTPConnection._http_vsn_str
102
logger.log(9, requestMsg)
103
104
page = conn.read()
0 commit comments