You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I send a request with header 'Accept: text/html' it works but if I send 'Accept: application/json', the application returns http 405 status code instead of 406.
Odd... I was sure we had unit tests for this and didn't we fix those messages to include the... uhm... well... message? @cloudson are you sure you are using the latest...
Is the 405 method not allowed triggered on GET? This is also odd....
header() does have a second arg which takes a boolean whether to overwrite and defaults to true, but I somehow don't think that is the problem here...
I'm using the latest Respect/Rest and probably I found a problem with content negotiation.
If I send a request with header 'Accept: text/html' it works but if I send 'Accept: application/json', the application returns http 405 status code instead of 406.
I watch the source code, and at first the correct header is setted
Next, the status code is overwritten
I hope fix it and send a PR soon, meanwhile the @Respect team could help me too about how do it in better way :)
☁️
The text was updated successfully, but these errors were encountered: