Skip to content

Commit b0a1053

Browse files
committedJul 25, 2022
fix: dont unquote querystrings
1 parent 8500d13 commit b0a1053

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This file documents any relevant changes.
44

5+
## [0.9.2] - 2022-07-25
6+
- fix: dont unquote querystrings
7+
58
## [0.9.1] - 2022-07-08
69
- fix: unicode urls
710

‎src/app_server/__init__.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
from werkzeug.utils import get_content_type
1010
from werkzeug.http import http_date, is_resource_modified
1111
from werkzeug._internal import _logger
12-
from werkzeug.urls import uri_to_iri,url_unquote
12+
from werkzeug.urls import uri_to_iri, url_unquote
1313

1414

1515

16-
__version__ = "0.9.1"
16+
__version__ = "0.9.2"
1717

1818
subprocesses = []
1919

@@ -103,10 +103,8 @@ def _set_defaults(opts):
103103
}
104104

105105
def __call__(self, environ: "WSGIEnvironment", start_response: "StartResponse") -> t.Iterable[bytes]:
106-
107-
path = url_unquote(environ["RAW_URI"])
106+
path = url_unquote(environ["PATH_INFO"])
108107
app = self.app
109-
110108
for prefix, opts in self.targets.items():
111109
if path.startswith(prefix):
112110
app = self.proxy_to(opts, path, prefix)

0 commit comments

Comments
 (0)