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
Hi, I run into an issue with request formats.
Seems like action compares whole content type against config media types when enforcing content type.
In result action can't accept multipart request due boundary definition in requests's content type.
Hi, I run into an issue with request formats.
Seems like action compares whole content type against config media types when enforcing content type.
In result action can't accept multipart request due boundary definition in requests's content type.
Tested on 2.0.1 and 2.0.2.
How to reproduce:
My suggestion is to use
request.media_type
in[ this part.] (https://github.com/hanami/controller/blob/main/lib/hanami/action/mime.rb#L225)I've monkey patched this part and it works just fine in my case. But smells bad.
But this can lead to the following issues:
Or maybe I just don't get how to configure formats.
The text was updated successfully, but these errors were encountered: