blob: 07407785ea3b8b34461dc1f124b5b973503d793c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- contrib/python/moto/py3/moto/s3/responses.py (index)
+++ contrib/python/moto/py3/moto/s3/responses.py (working tree)
@@ -343,7 +343,10 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
#
# Workaround - manually reverse the encoding.
# Keep the + encoded, ensuring that parse_qsl doesn't replace it, and parse_qsl will unquote it afterwards
- qs = (parsed_url.query or "").replace("+", "%2B")
+ #
+ # YQ-1825: Replace was commented out as the version of `Werkzeug`
+ # that we are using is 2.0.3 (lesser than 2.1.0) and workaround is not needed
+ qs = (parsed_url.query or "") #.replace("+", "%2B")
querystring = parse_qs(qs, keep_blank_values=True)
return querystring
|