fix: regression that replaces an unknown media type with */* (#4013)

This commit is contained in:
Taimoor Zaeem
2025-04-14 09:57:54 -05:00
committed by GitHub
parent a1009d1bae
commit feb5b7d494
2 changed files with 8 additions and 1 deletions
@@ -375,3 +375,10 @@ spec = describe "custom media types" $ do
{ matchStatus = 200
, matchHeaders = ["Content-Type" <:> "application/octet-stream"]
}
context "media type parser fails" $ do
it "sends media type as is" $
request methodGet "/items" (acceptHdrs "undefined") ""
`shouldRespondWith`
[json| {"code":"PGRST107","details":null,"hint":null,"message":"None of these media types are available: undefined"} |]
{ matchStatus = 406 }