fix: Remove old TOR hidden service header
All checks were successful
Build Docker / BuildImage (push) Successful in 59s

This commit is contained in:
Nathan Woodburn 2024-05-28 14:40:21 +10:00
parent 922a0f5d47
commit 1cb8f3ea65
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -25,11 +25,11 @@ if os.path.isfile('data/sites.json'):
with open('data/sites.json') as file:
sites = json.load(file)
# Custom header
def add_custom_header(response):
response.headers['Onion-Location'] = 'http://wdbrncwefot4hd7bdrz5rzb74mefay7zvrjn2vmkpdm44l7fwnih5ryd.onion/'
return response
app.after_request(add_custom_header)
# Custom header for TOR
# def add_custom_header(response):
# response.headers['Onion-Location'] = 'http://wdbrncwefot4hd7bdrz5rzb74mefay7zvrjn2vmkpdm44l7fwnih5ryd.onion/'
# return response
# app.after_request(add_custom_header)
#Assets routes