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

Skip to content

Commit 2668c95

Browse files
committed
added default HTTP version used by httplib and urllib2
1 parent 7f1aa3b commit 2668c95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def getPage(**kwargs):
114114
if conf.parameters.has_key("POST") and not post:
115115
post = conf.parameters["POST"]
116116

117-
requestMsg += " HTTP/1.1"
117+
requestMsg += " %s" % httplib.HTTPConnection._http_vsn_str
118118

119119
# Perform HTTP request
120120
headers = forgeHeaders(cookie, ua)

0 commit comments

Comments
 (0)