Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danielwhite
Copy link
Contributor

Currently static content is being assigned a Content-Type header of an empty string.

The index works out of the box correctly, but will misbehave if other middleware is added to the request handler.

This is necessary to support middleware that performs compression of the
response.
This has been setting the `Content-Type` header to an empty string,
because the `mime.TypeByExtension` function expects a string with a
leading dot.
@ian-kent
Copy link
Member

ian-kent commented Oct 6, 2015

👍 awesome, thanks @danielwhite

ian-kent added a commit that referenced this pull request Oct 6, 2015
@ian-kent ian-kent merged commit d78b1cc into mailhog:master Oct 6, 2015
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.

2 participants