-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
All HTTP responses return with status code 200 #411
Comments
The only temporary solution I found is to add the following code:
inside Not sure if this solution is going to cause any side effects. Here is the full registerRequestHandler method, with my modified code:
|
Thank you for reporting this. This would've been introduced in #291. This bug is caused by Laravel's HTTP Response thinking the status is always This currently affects v5 alpha/beta as well as users of v4 who have opted into We will get releases out for v4 and v5 beta as well as get some sort of announcement out to make sure those using the experimental flag or v5 in production get updated ASAP. EDIT: https://discourse.roots.io/t/acorn-v4-v5-router-fix-for-response-codes/28890 |
Version
^5.0.0
What did you expect to happen?
I expect the following dummy endpoint to return status code 400, but whenever I test it via postman it returns status code 200. This code is on a fresh Bedrock+Sage instance, with no other plugins activated.
The bug only seems to be present if we are using ^5.0.0 Acorn, while on on Acorn ^4.3.0 the response status code from the following endpoint is 400.
What actually happens?
The endpoint returns status code 200, although the response code is explicitly set to 400. (Throwing a generic exception, also returns status code 200).
Steps to reproduce
System info
Log output
No response
Please confirm this isn't a support request.
Yes
The text was updated successfully, but these errors were encountered: