File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
aws-replicator/aws_replicator/client Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2929from localstack_ext .bootstrap .licensingv2 import ENV_LOCALSTACK_API_KEY , ENV_LOCALSTACK_AUTH_TOKEN
3030from werkzeug import Request , Response
3131from werkzeug import serving as werkzeug_serving
32+ from werkzeug .datastructures import Headers
3233
3334from aws_replicator import config as repl_config
3435from aws_replicator .client .utils import truncate_content
@@ -77,6 +78,8 @@ def do_shutdown(self):
7778 @Request .application
7879 def _wsgi_app (self , request : Request ) -> Response :
7980 """A wsgi-compatible interface for serving the proxy server."""
81+ # make headers mutable (needed for serving through werkzeug)
82+ request .headers = Headers (request .headers )
8083 return self .proxy_request (request )
8184
8285 def proxy_request (self , request : Request ) -> Response :
You can’t perform that action at this time.
0 commit comments