-
Notifications
You must be signed in to change notification settings - Fork 304
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
Do not append an identical file extension #1328
Conversation
@RubenVerborgh I checked that I have the same test errors with and without the fix. |
lib/resource-mapper.js
Outdated
@@ -162,6 +162,15 @@ class ResourceMapper { | |||
return extension && this._types[extension[1].toLowerCase()] || this._defaultContentType | |||
} | |||
|
|||
// hack to fix file.ext$.ext --> file.ext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not do hacks in this class that's actually in good shape 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Kept test; replaced with non-hack.
Continued in #1336 |
Fixes #1318
Problem identified in jshttp/mime-types#23