diff --git a/linkcheck/checker/httpurl.py b/linkcheck/checker/httpurl.py index 6aab5e7c..296917d9 100644 --- a/linkcheck/checker/httpurl.py +++ b/linkcheck/checker/httpurl.py @@ -284,8 +284,12 @@ 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) + self.build_url_parts() def construct_auth (self): """Construct HTTP Basic authentication credentials if there