mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
yarl.URL.scheme is not writable
This commit is contained in:
parent
b757140bec
commit
a6c41119ac
1 changed files with 1 additions and 3 deletions
|
@ -570,9 +570,7 @@ def should_skip_delta(id, globs):
|
|||
def keep_host(location, original):
|
||||
loc_url = URL(location)
|
||||
org_url = URL(original)
|
||||
loc_url.scheme = org_url.scheme
|
||||
loc_url.authority = org_url.authority
|
||||
return str(loc_url)
|
||||
return str(loc_url.with_scheme(org_url.scheme).with_host(org_url.host).with_port(org_url.port))
|
||||
|
||||
def build_url_to_api(build_url):
|
||||
parts = urlparse(build_url)
|
||||
|
|
Loading…
Reference in a new issue