mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-01 12:08:13 +00:00
no log: fix Sonarr/Radarr test button bug introduced in previous commit
This commit is contained in:
parent
bbd549db60
commit
84e8872652
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ def configured():
|
||||||
@ui_bp.route('/test', methods=['GET'])
|
@ui_bp.route('/test', methods=['GET'])
|
||||||
@ui_bp.route('/test/<protocol>/<path:url>', methods=['GET'])
|
@ui_bp.route('/test/<protocol>/<path:url>', methods=['GET'])
|
||||||
def proxy(protocol, url):
|
def proxy(protocol, url):
|
||||||
if protocol.lower not in ['http', 'https']:
|
if protocol.lower() not in ['http', 'https']:
|
||||||
return dict(status=False, error='Unsupported protocol')
|
return dict(status=False, error='Unsupported protocol')
|
||||||
url = protocol + '://' + unquote(url)
|
url = protocol + '://' + unquote(url)
|
||||||
params = request.args
|
params = request.args
|
||||||
|
|
Loading…
Reference in a new issue