Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Commit de97669

Browse files
author
Maxime Vaillancourt
committed
fixed 'no mimetype in header' bug
1 parent 644a056 commit de97669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/feed.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ router.get('/',
2929

3030
// check what mimetype we have
3131
utils.mimeTypes.forEach(function(m){
32-
if (requestResponse.headers["content-type"].indexOf(m.mimetype) > -1){
32+
if (requestResponse.headers["content-type"] && requestResponse.headers["content-type"].indexOf(m.mimetype) > -1){
3333
feedType = m.feedtype;
3434
}
3535
})
@@ -156,4 +156,4 @@ router.get('/',
156156
/**********************************************************************
157157
Exports
158158
**********************************************************************/
159-
module.exports = router;
159+
module.exports = router;

0 commit comments

Comments
 (0)