1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-07 00:56:11 +02:00
Files
Mailu/admin/mailu/internal/views.py

14 lines
341 B
Python
Raw Normal View History

from mailu import db, models
from mailu.internal import internal, nginx
import flask
@internal.route("/nginx")
def nginx_authentication():
headers = nginx.handle_authentication(flask.request.headers)
response = flask.Response()
for key, value in headers.items():
response.headers[key] = str(value)
return response