anfragment/zen

contenttype modifier doesn't match Content-Type headers with parameters

Closed this issue · 3 comments

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:

In case anyone wants to work on this, I can walk you through a solution.

I think I can try

@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.