mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 22:40:59 +00:00
style: ruff format main.py
This commit is contained in:
@@ -114,7 +114,9 @@ class HTTPController:
|
|||||||
for i in range(len(segments) - 1, 0, -1):
|
for i in range(len(segments) - 1, 0, -1):
|
||||||
parent_path = '/'.join(segments[:i]) + '.html'
|
parent_path = '/'.join(segments[:i]) + '.html'
|
||||||
if os.path.exists(os.path.join(frontend_path, parent_path)):
|
if os.path.exists(os.path.join(frontend_path, parent_path)):
|
||||||
response = await quart.send_from_directory(frontend_path, parent_path, mimetype='text/html')
|
response = await quart.send_from_directory(
|
||||||
|
frontend_path, parent_path, mimetype='text/html'
|
||||||
|
)
|
||||||
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
|
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
|
||||||
response.headers['Pragma'] = 'no-cache'
|
response.headers['Pragma'] = 'no-cache'
|
||||||
response.headers['Expires'] = '0'
|
response.headers['Expires'] = '0'
|
||||||
|
|||||||
Reference in New Issue
Block a user