fix: Remove old TOR hidden service header
All checks were successful
Build Docker / BuildImage (push) Successful in 59s
All checks were successful
Build Docker / BuildImage (push) Successful in 59s
This commit is contained in:
parent
922a0f5d47
commit
1cb8f3ea65
10
server.py
10
server.py
@ -25,11 +25,11 @@ if os.path.isfile('data/sites.json'):
|
|||||||
with open('data/sites.json') as file:
|
with open('data/sites.json') as file:
|
||||||
sites = json.load(file)
|
sites = json.load(file)
|
||||||
|
|
||||||
# Custom header
|
# Custom header for TOR
|
||||||
def add_custom_header(response):
|
# def add_custom_header(response):
|
||||||
response.headers['Onion-Location'] = 'http://wdbrncwefot4hd7bdrz5rzb74mefay7zvrjn2vmkpdm44l7fwnih5ryd.onion/'
|
# response.headers['Onion-Location'] = 'http://wdbrncwefot4hd7bdrz5rzb74mefay7zvrjn2vmkpdm44l7fwnih5ryd.onion/'
|
||||||
return response
|
# return response
|
||||||
app.after_request(add_custom_header)
|
# app.after_request(add_custom_header)
|
||||||
|
|
||||||
|
|
||||||
#Assets routes
|
#Assets routes
|
||||||
|
Loading…
Reference in New Issue
Block a user