We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfbd387 commit 6a1e05bCopy full SHA for 6a1e05b
lib/resource-mapper.js
@@ -71,7 +71,7 @@ class ResourceMapper {
71
// Find a file with the same name (minus the dollar extension)
72
let match = searchIndex ? await this._getMatchingFile(folder, filename, isIndex) : ''
73
// Do not match with html if the content type won't allow it
74
- if (!(contentType.includes('text/html') || contentType.includes('*/*'))) {
+ if (contentType && !(contentType.includes('text/html') || contentType.includes('*/*'))) {
75
match = ''
76
}
77
if (match === undefined) {
0 commit comments