Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get file extension based on content-type application/javascript #137

Merged
merged 5 commits into from
Sep 12, 2018

Conversation

manuelroth
Copy link
Contributor

  • The mimos package doesn't store the file extension for content-type text/javascript, because IANA marks this content-type as depricated. See this issue for more details.
  • Therefore I propose to get the file extension based on content-type application/javascript

@@ -87,7 +87,15 @@ module.exports = {
return Boom.unsupportedMediaType("Content-type not allowed");
}

const type = mimos.type(contentType);
// The mimos package doesn't store the extension for the content-type text/javascript
// because its marked as depricated by IANA. Therefore we get the file extension based
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small type: deprecated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1e2eb46

@manuelroth manuelroth merged commit b969d91 into dev Sep 12, 2018
@manuelroth manuelroth deleted the fix-type-extension branch September 12, 2018 10:06
@nzzdev nzzdev deleted a comment Nov 2, 2020
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