Skip to content

Set Content-Type header explicitly for html endpoints#12

Open
fapdash wants to merge 1 commit intodelaneyj:mainfrom
fapdash:fix-firefox
Open

Set Content-Type header explicitly for html endpoints#12
fapdash wants to merge 1 commit intodelaneyj:mainfrom
fapdash:fix-firefox

Conversation

@fapdash
Copy link
Copy Markdown

@fapdash fapdash commented Sep 9, 2025

It seems like the Content-Type header needs to be set explicitly when using the github.com/CAFxX/httpcompression middleware.

fixes #6


Not sure if this is a bug in httpcompression or if this intended behavior?
I couldn't find a mention in their documentation, but their usage example also explicitly sets the Content-Type header: https://github.com/CAFxX/httpcompression/blob/f754b5f26260ceb4570eed58cfecfa09da27852a/README.md?plain=1#L50-L68

It seems like the Content-Type header needs to be set explicitly when
using the github.com/CAFxX/httpcompression middleware.

fixes delaneyj#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github.com/CAFxX/httpcompression breaks firefox

1 participant