Revert "Urlencode the url in the requests."
This reverts commit 17729de998
.
This commit is contained in:
parent
7ba6ffcd8d
commit
db8ccd5865
1 changed files with 1 additions and 6 deletions
|
@ -10,11 +10,6 @@ import datetime
|
||||||
import pprint
|
import pprint
|
||||||
import re
|
import re
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib import quote
|
|
||||||
except ImportError:
|
|
||||||
from urllib.parse import quote
|
|
||||||
|
|
||||||
# pylint: disable=redefined-builtin
|
# pylint: disable=redefined-builtin
|
||||||
from builtins import bytes
|
from builtins import bytes
|
||||||
|
|
||||||
|
@ -202,7 +197,7 @@ class HttpRequest:
|
||||||
payload = None # type: unicode
|
payload = None # type: unicode
|
||||||
|
|
||||||
if request_type == RequestType.GET:
|
if request_type == RequestType.GET:
|
||||||
get = 'GET {location} HTTP/1.1'.format(location=quote(location))
|
get = 'GET {location} HTTP/1.1'.format(location=location)
|
||||||
request_list = [get, host_header,
|
request_list = [get, host_header,
|
||||||
user_agent, accept_header, end_separator]
|
user_agent, accept_header, end_separator]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue