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
Another library, Siesta for iOS, expects an HTTP 204 to not include the Content-Type (or, I should say that if that is present, they try to parse the non-existent body).
While we think about the long term solution for this problem, you can easily implement a quick fix
Compose class is responsible for final response, so you can create a custom Compose class by implementing iCompose interface and then set Defaults::$composeClass to the class name of your custom class. Here is an example
Another library, Siesta for iOS, expects an HTTP 204 to not include the Content-Type (or, I should say that if that is present, they try to parse the non-existent body).
The RFC states the following:
While it doesn't explicitly state that the header shouldn't be sent if there is no body, it only states that it should if the body exists.
I'd suggest moving the Content-Type generation logic after the status code assignment, with it wrapped in a conditional where
$code != 204
.Thoughts?
The text was updated successfully, but these errors were encountered: