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
the problem arises when the server declares an endpoint GET /foo and the client makes a request POST /foo using application/x-www-form-urlencoded as media type. It returns error 415 instead of 405 Method not found.
The text was updated successfully, but these errors were encountered:
munishchouhan
changed the title
Regression in micronaut, http call is returing 415 when that http method is not present instead of 405
Regression in micronaut, http call is returing 415 for missing http method instead of 405
Dec 24, 2024
munishchouhan
changed the title
Regression in micronaut, http call is returing 415 for missing http method instead of 405
Regression in micronaut, http call is returning 415 for missing http method instead of 405
Dec 24, 2024
Expected Behavior
the problem arises when the server declares an endpoint
GET /foo
and the client makes a requestPOST /foo
usingapplication/x-www-form-urlencoded
as media type. It returns error 415 instead of 405 Method not found.This was not the case in MN 3
Actual Behaviour
It should return 405
Steps To Reproduce
Sample application for this:
https://github.com/munishchouhan/MediaTypeMismatch
Environment Information
os: Mac OS
java: 21
Example Application
https://github.com/munishchouhan/MediaTypeMismatch
Version
4.7.3
The text was updated successfully, but these errors were encountered: