Skip to content

Commit

Permalink
fix: starting with Werkzeug 2.1, HATEOAS links are relative
Browse files Browse the repository at this point in the history
Closes #1475
  • Loading branch information
nicolaiarocci committed Apr 13, 2022
1 parent c629419 commit c20aa0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ Fixed
- Tutorial mistake on custom IDs values with UUIDs (`#1451`_)
- Documentation typos (`#1462`_, `#1469`_)
- Switch to GitHub Actions from Travis CI (`#1439`_, `#1444`_)
- Starting with Werkzeug 2.1, HATEOAS links are relative instead of absolute (`#1475`_)

.. _`#1469`: https://github.com/pyeve/eve/pull/1469
.. _`#1475`: https://github.com/pyeve/eve/issues/1475
.. _`#1451`: https://github.com/pyeve/eve/issues/1451
.. _`#1464`: https://github.com/pyeve/eve/issues/1464
.. _`#1461`: https://github.com/pyeve/eve/issues/1461
Expand Down
1 change: 1 addition & 0 deletions eve/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def _prepare_response(
# build the main wsgi response object
resp = make_response(rendered, status)
resp.mimetype = mime
resp.autocorrect_location_header = True

# extra headers
if headers:
Expand Down

0 comments on commit c20aa0c

Please sign in to comment.