mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
ui - remove python 3.11 import for Linux integrations
This commit is contained in:
parent
73060e42a1
commit
236572f581
1 changed files with 1 additions and 5 deletions
|
|
@ -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}``.
|
||||
|
|
|
|||
Loading…
Reference in a new issue