diff options
author | Micah Lee <micah@micahflee.com> | 2020-12-13 10:48:16 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-12-13 10:48:16 -0800 |
commit | c949a731bb885a602000606426436384b9495cff (patch) | |
tree | 963b1ef451e10b2186335cfa63366f6c94696014 | |
parent | e092c50b4200478a71a796ab4ca9167a6000c150 (diff) | |
download | onionshare-c949a731bb885a602000606426436384b9495cff.tar.gz onionshare-c949a731bb885a602000606426436384b9495cff.zip |
Stop passing status_url_path to render denied template, to avoid exception
-rw-r--r-- | cli/onionshare_cli/resources/templates/denied.html | 5 | ||||
-rw-r--r-- | cli/onionshare_cli/web/share_mode.py | 11 |
2 files changed, 4 insertions, 12 deletions
diff --git a/cli/onionshare_cli/resources/templates/denied.html b/cli/onionshare_cli/resources/templates/denied.html index 49147ef2..e8c49f98 100644 --- a/cli/onionshare_cli/resources/templates/denied.html +++ b/cli/onionshare_cli/resources/templates/denied.html @@ -4,12 +4,11 @@ <head> <title>OnionShare</title> <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" /> + <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <p>OnionShare download in progress</p> </body> -</html> +</html>
\ No newline at end of file diff --git a/cli/onionshare_cli/web/share_mode.py b/cli/onionshare_cli/web/share_mode.py index 39c82d31..87f35eaa 100644 --- a/cli/onionshare_cli/web/share_mode.py +++ b/cli/onionshare_cli/web/share_mode.py @@ -61,10 +61,7 @@ class ShareModeWeb(SendBaseModeWeb): and self.download_in_progress ) if deny_download: - r = make_response( - render_template("denied.html"), - static_url_path=self.web.static_url_path, - ) + r = make_response(render_template("denied.html")) return self.web.add_security_headers(r) # If download is allowed to continue, serve download page @@ -87,11 +84,7 @@ class ShareModeWeb(SendBaseModeWeb): and self.download_in_progress ) if deny_download: - r = make_response( - render_template( - "denied.html", static_url_path=self.web.static_url_path - ) - ) + r = make_response(render_template("denied.html")) return self.web.add_security_headers(r) # Prepare some variables to use inside generate() function below |