Skip to content

refactor: Move Location header logic to make_item_response#328

Merged
taion merged 1 commit into
masterfrom
mir-location
Apr 8, 2020
Merged

refactor: Move Location header logic to make_item_response#328
taion merged 1 commit into
masterfrom
mir-location

Conversation

@taion
Copy link
Copy Markdown
Contributor

@taion taion commented Mar 27, 2020

No description provided.

@taion taion requested a review from itajaja March 27, 2020 18:24
Comment thread flask_resty/view.py
if location is not None:
response.headers["Location"] = location
return response
return self.make_item_response(item, 201)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you want to amend the doc of this method

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@itajaja does that answer the question, or am i missing something here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah of course 🤦‍♂ . all good

Copy link
Copy Markdown
Member

@itajaja itajaja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this makes sense after all

Comment thread flask_resty/view.py
if location is not None:
response.headers["Location"] = location
return response
return self.make_item_response(item, 201)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah of course 🤦‍♂ . all good

@taion taion merged commit c96e8d5 into master Apr 8, 2020
@taion taion deleted the mir-location branch April 8, 2020 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants