mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00

Detect request format (HTML or JSON) from `content-type` header. Previous: - path extension (.json, .html) - "Accept" header - default (.UNKNOWN => .HTML) Current: - path extension (.json, .html) - "Accept" header - "Content-Type" header - default (.UNKNOWN => .HTML) Adjust `http.Headers` to do case-insensitive matching to conform to HTTP spec: https://www.rfc-editor.org/rfc/rfc9110.html#name-field-names