From 2b186511e82cb35033e69e6bd60567ab8136838f Mon Sep 17 00:00:00 2001 From: Konstantinos Koukopoulos Date: Mon, 19 May 2014 16:16:50 +0300 Subject: [PATCH] don't provide request headers as response headers in server --- moto/core/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moto/core/utils.py b/moto/core/utils.py index 0d47478d7..9926a2a36 100644 --- a/moto/core/utils.py +++ b/moto/core/utils.py @@ -64,8 +64,7 @@ class convert_flask_to_httpretty_response(object): return "{0}.{1}".format(outer, self.callback.__name__) def __call__(self, args=None, **kwargs): - headers = dict(request.headers) - result = self.callback(request, request.url, headers) + result = self.callback(request, request.url, {}) # result is a status, headers, response tuple status, headers, response = result return response, status, headers