mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-04 07:00:23 +00:00
Merge pull request #418 from chuckbjones/reset-url-on-fallback
Reset to original url when falling back to GET
This commit is contained in:
commit
9646f0b652
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue