03-arcadia.patch 783 B

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