Close connection prior to falling back to get, since we change the url back to the original at that time.

This commit is contained in:
Charles Jones 2013-08-09 13:08:51 -05:00
parent 8bc138f18b
commit 4294633c04

View file

@ -283,6 +283,8 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport, pooledc
def fallback_to_get(self):
"""Set method to GET and clear aliases."""
self.close_response()
self.close_connection()
self.method = "GET"
self.aliases = []
self.urlparts = strformat.url_unicode_split(self.url)