vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

Always return a 415 if the content type is mismatching, also if its value is empty #2658

Closed komape closed 1 month ago

komape commented 1 month ago

Motivation:

Solves the bug described in #2656. Instead of returning a 400 in case of a missing content type, it now returns a 415. For further details, see the issue.

It does not add the return of an Accept header in case of a mismatched content type. But I would not see this as a bug but rather as an enhancement which needs its own issue.

Additional context:

Has already been merged into master in PR #2657. This PR merges it into 4.x.

komape commented 1 month ago

Ups, used the wrong source branch for my branch.