Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify put_location for optional Location #16

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

gstrauss
Copy link
Contributor

do not issue warning if Location is not provided with 201 Created

As posted in #14 (comment):

RFC9110

15.3.2. 201 Created

The 201 (Created) status code indicates that the request has been fulfilled and has resulted in one or more new resources being created. The primary resource created by the request is identified by either a Location header field in the response or, if no Location header field is received, by the target URI.

As per above, Location is optional when returning 201 Created for PUT request which can be retrieved at the same target URI.

do not issue warning if Location is not provided with 201 Created

github: closes notroj#16
@notroj
Copy link
Owner

notroj commented Feb 25, 2024

Thanks a lot @gstrauss

@notroj notroj merged commit 33473b2 into notroj:master Feb 25, 2024
13 checks passed
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