Skip to content

Commit

Permalink
Merge pull request #5 from ateliedocodigo/bugfix/headers
Browse files Browse the repository at this point in the history
Override duplicated packages
  • Loading branch information
luiscoms committed May 25, 2020
2 parents 679d93e + c77d245 commit 88148c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eve_healthcheck/__init__.py
Expand Up @@ -15,10 +15,12 @@ def view_health_func(hc, resource=None):
None,
None,
status,
[(k, v) for k, v in headers.items()],
None,
)

return send_response(resource, response)
resp = send_response(resource, response)
[resp.headers.set(k, v) for k, v in headers.items()]
return resp


def check_wrapper(app):
Expand Down

0 comments on commit 88148c8

Please sign in to comment.