HomePhorge

CastAndValidate: Fix incorrect content-type handling

Description

CastAndValidate: Fix incorrect content-type handling

If there was no content type header in the request, it was
transformed to "", making it fall through a check that
no body was present if the body is optional , resulting
in "Invalid value for header: content-type" errors.

Details

Provenance
rinpatchAuthored on Apr 13 2020, 3:10 PM
Parents
R22:014803e101a9: Merge pull request #216 from open-api-spex/fix/explicit-reference-in-schemas
Branches
Unknown
Tags
Unknown

Event Timeline