Skip to content

Instantly share code, notes, and snippets.

@slingamn
Created September 10, 2012 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slingamn/5ae6b972b067d7b81e96 to your computer and use it in GitHub Desktop.
Save slingamn/5ae6b972b067d7b81e96 to your computer and use it in GitHub Desktop.
diff --git a/requests/models.py b/requests/models.py
index 2536c7a..7785c7f 100644
--- a/requests/models.py
+++ b/requests/models.py
@@ -237,6 +237,7 @@ class Request(object):
# Release the connection back into the pool.
r.raw.release_conn()
+ r.raw = None
history.append(r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment