Skip to content

Commit

Permalink
Update reference to headers in the response.
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
  • Loading branch information
litghost committed Apr 14, 2021
1 parent db7031b commit d627709
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion revproxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.10.0'
__version__ = '0.10.1'
2 changes: 1 addition & 1 deletion revproxy/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_django_response(proxy_response, strict_cookies=False):
logger.info('Normalizing response headers')
set_response_headers(response, headers)

logger.debug('Response headers: %s', getattr(response, '_headers'))
logger.debug('Response headers: %s', getattr(response, 'headers'))

cookies = proxy_response.headers.getlist('set-cookie')
logger.info('Checking for invalid cookies')
Expand Down
2 changes: 1 addition & 1 deletion revproxy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def set_response_headers(response, response_headers):

response[header.title()] = value

logger.debug('Response headers: %s', getattr(response, '_headers'))
logger.debug('Response headers: %s', getattr(response, 'headers'))


def normalize_request_headers(request):
Expand Down

0 comments on commit d627709

Please sign in to comment.