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

Plack::Middleware::ConditionalGET only check if HTTP 200 [Bug Fix] #667

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robrwo
Copy link
Contributor

@robrwo robrwo commented Mar 25, 2021

RFC 2616 Sec 14.25 states that:

If the request would normally result in anything other than a
200 (OK) status, ... the response is exactly the same as for
a normal GET.

There is no point in checking the headers if the status code is
something else.

RFC 2616 Sec 14.25 states that:

> If the request would normally result in anything other than a
> 200 (OK) status, ... the response is exactly the same as for
> a normal GET.

There is no point in checking the headers if the status code is
something else.
@miyagawa
Copy link
Member

This seems reasonable. I'll check if there's any expectation around how this middleware behaves when the backend do send 30x.

@robrwo
Copy link
Contributor Author

robrwo commented Sep 3, 2022

Is this alright to merge?

@robrwo
Copy link
Contributor Author

robrwo commented Dec 23, 2022

@miyagawa Any update on merging this? Thanks.

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