This commit is contained in:
Kenneth Reitz
2011-09-25 19:41:48 -04:00
parent bd2b0c45ba
commit 9488af5a42
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ This module impliments the Requests API.
"""
import config
from .models import Request, Response, AuthObject
from .models import Request, Response
from .status_codes import codes
from .hooks import dispatch_hook
from .utils import cookiejar_from_dict, header_expand
+3 -3
View File
@@ -82,7 +82,7 @@ class Request(object):
self.response = Response()
#: :class:`AuthObject` to attach to :class:`Request <Request>`.
# self.auth = auth
self.auth = auth
#: CookieJar to attach to :class:`Request <Request>`.
self.cookies = cookies
@@ -161,7 +161,7 @@ class Request(object):
):
# We already redirected. Don't keep it alive.
r.raw.close()
# r.raw.close()
# Woah, this is getting crazy.
if len(history) >= settings.max_redirects:
@@ -196,7 +196,7 @@ class Request(object):
# Create the new Request.
request = Request(
url, self.headers, self.files, method,
self.data, self.params, self.auth, self.cookiejar,
self.data, self.params, self.auth, self.cookies,
# Flag as part of a redirect loop.
redirect=True