contenttype modifier doesn't match Content-Type headers with parameters
Closed this issue · 3 comments
anfragment commented
The Content-Type header values can potentially contain parameters after a semicolon, in addition to the media type. Our $contenttype modifier implementation doesn't take that into account.
References:
anfragment commented
In case anyone wants to work on this, I can walk you through a solution.
Noahnut commented
I think I can try
anfragment commented
@Noahnut thanks for offering help, but it turns out $contenttype determines the type base on requests' Sec-Fetch-Dest header instead of response's Content-Type. The issue is incorrect.