Move to_native_string for methods to prepare()

This commit is contained in:
Cory Benfield
2015-10-12 10:50:37 +01:00
parent b071c49556
commit 2df3c7c75d
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
"""Prepares the given HTTP method."""
self.method = method
if self.method is not None:
self.method = self.method.upper()
self.method = to_native_string(self.method.upper())
def prepare_url(self, url, params):
"""Prepares the given HTTP URL."""
-3
View File
@@ -438,9 +438,6 @@ class Session(SessionRedirectMixin):
:param cert: (optional) if String, path to ssl client cert file (.pem).
If Tuple, ('cert', 'key') pair.
"""
method = to_native_string(method)
# Create the Request.
req = Request(
method = method.upper(),