mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-25 23:39:43 -05:00
Merge branch 'develop' of github.com:micahflee/onionshare into develop
This commit is contained in:
commit
a5c7f091fc
@ -5,7 +5,6 @@
|
|||||||
<title>OnionShare</title>
|
<title>OnionShare</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -61,10 +61,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
|||||||
and self.download_in_progress
|
and self.download_in_progress
|
||||||
)
|
)
|
||||||
if deny_download:
|
if deny_download:
|
||||||
r = make_response(
|
r = make_response(render_template("denied.html"))
|
||||||
render_template("denied.html"),
|
|
||||||
static_url_path=self.web.static_url_path,
|
|
||||||
)
|
|
||||||
return self.web.add_security_headers(r)
|
return self.web.add_security_headers(r)
|
||||||
|
|
||||||
# If download is allowed to continue, serve download page
|
# If download is allowed to continue, serve download page
|
||||||
@ -87,11 +84,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
|||||||
and self.download_in_progress
|
and self.download_in_progress
|
||||||
)
|
)
|
||||||
if deny_download:
|
if deny_download:
|
||||||
r = make_response(
|
r = make_response(render_template("denied.html"))
|
||||||
render_template(
|
|
||||||
"denied.html", static_url_path=self.web.static_url_path
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return self.web.add_security_headers(r)
|
return self.web.add_security_headers(r)
|
||||||
|
|
||||||
# Prepare some variables to use inside generate() function below
|
# Prepare some variables to use inside generate() function below
|
||||||
|
Loading…
Reference in New Issue
Block a user