Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Set MIME types using Fiber's built-in method #3

Merged
merged 2 commits into from
Apr 25, 2020
Merged

Set MIME types using Fiber's built-in method #3

merged 2 commits into from
Apr 25, 2020

Conversation

thomasvvugt
Copy link
Contributor

We might want to add a method to Fiber, to be able to get the MIME type using http.DetectContentType(data).
The old method used to return text/plain more often than Fiber's method, i.e. when embedding .js files.

@thomasvvugt thomasvvugt requested review from a team, Fenny, jozsefsallai and koddr and removed request for a team April 25, 2020 19:48
@Fenny Fenny merged commit 54b6aeb into gofiber:master Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants