From ca9414cec2dd9bf295bf4ecc59dde524667ae664 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 4 Jun 2015 16:06:20 +0100 Subject: [PATCH] Update Requests library 2.7.0 (ab1f493) to 2.7.0 (8b5e457). --- CHANGES.md | 5 ++++- lib/requests/models.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 985383a7..4d59ddb4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,7 @@ * Update Tornado webserver to 4.2b1 (61a16c9) * Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt) * Update fix for API response header for JSON content type and the return of JSONP data to updated package (ref:hacks.txt) -* Update Requests library 2.6.2 to 2.7.0 (ab1f493) +* Update Requests library 2.6.2 to 2.7.0 (8b5e457) * Update change to suppress HTTPS verification InsecureRequestWarning to updated package (ref:hacks.txt) * Change to consolidate cache database migration code * Change to only rebuild namecache on show update instead of on every search @@ -19,6 +19,9 @@ * Change handling of general HTTP error response codes to prevent issues * Add handling for CloudFlare custom HTTP response codes +[develop changelog] +* Update Requests library 2.7.0 (ab1f493) to 2.7.0 (8b5e457) + ### 0.9.1 (2015-05-25 03:03:00 UTC) diff --git a/lib/requests/models.py b/lib/requests/models.py index ccaf5968..7ab21f78 100644 --- a/lib/requests/models.py +++ b/lib/requests/models.py @@ -842,4 +842,7 @@ class Response(object): *Note: Should not normally need to be called explicitly.* """ + if not self._content_consumed: + return self.raw.close() + return self.raw.release_conn()