app-server
Advanced tools
+3
-2
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: app_server | ||
| Version: 1.0.1 | ||
| Version: 1.0.2 | ||
| Summary: a lightweight web application launcher for gunicorn and static files. | ||
@@ -19,2 +19,3 @@ Home-page: https://github.com/viur-framework/viur-app_server | ||
| Requires-Dist: grpcio>=1.58.0 | ||
| Dynamic: license-file | ||
@@ -21,0 +22,0 @@ ## App Server |
@@ -1,4 +0,4 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.4 | ||
| Name: app_server | ||
| Version: 1.0.1 | ||
| Version: 1.0.2 | ||
| Summary: a lightweight web application launcher for gunicorn and static files. | ||
@@ -19,2 +19,3 @@ Home-page: https://github.com/viur-framework/viur-app_server | ||
| Requires-Dist: grpcio>=1.58.0 | ||
| Dynamic: license-file | ||
@@ -21,0 +22,0 @@ ## App Server |
@@ -19,3 +19,3 @@ import argparse | ||
| __version__ = "1.0.1" | ||
| __version__ = "1.0.2" | ||
@@ -22,0 +22,0 @@ subprocesses = [] |
| import typing as t | ||
| import urllib | ||
| from wsgiref.types import StartResponse, WSGIApplication, WSGIEnvironment | ||
| from werkzeug.middleware.http_proxy import ProxyMiddleware | ||
| from werkzeug.wsgi import get_path_info | ||
| class Proxy(ProxyMiddleware): | ||
@@ -34,3 +32,7 @@ """this addition allows to redirect all routes to given targets""" | ||
| ) -> t.Iterable[bytes]: | ||
| path = get_path_info(environ) | ||
| # Overide Pathinfo because werkzueg not unquote the path correct | ||
| # https://github.com/pallets/werkzeug/blob/7868bef5d978093a8baa0784464ebe5d775ae92a/src/werkzeug/serving.py#L179-L208 | ||
| path = environ["REQUEST_URI"] | ||
| path = urllib.parse.urlparse(path).path | ||
| app = self.app | ||
@@ -37,0 +39,0 @@ for prefix, opts in self.targets.items(): |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
23570
1.14%418
0.72%