Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

app-server

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-server - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+3
-2
PKG-INFO

@@ -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

+1
-1

@@ -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():