mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 12:54:42 +00:00
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:
parent
8bc138f18b
commit
4294633c04
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue