ui - remove python 3.11 import for Linux integrations

This commit is contained in:
florian 2023-06-14 09:24:59 +02:00
parent 73060e42a1
commit 236572f581
No known key found for this signature in database
GPG key ID: 3D80806F12602A7C

View file

@ -1,14 +1,10 @@
#!/usr/bin/python3
from typing import Iterable
from wsgiref.types import StartResponse, WSGIEnvironment
from werkzeug.middleware.proxy_fix import ProxyFix
class ReverseProxied(ProxyFix):
def __call__(
self, environ: WSGIEnvironment, start_response: StartResponse
) -> Iterable[bytes]:
def __call__(self, environ, start_response):
"""Modify the WSGI environ based on the various ``Forwarded``
headers before calling the wrapped application. Store the
original environ values in ``werkzeug.proxy_fix.orig_{key}``.