unpkg/modules/utils/getContentTypeHeader.js
2018-12-17 09:38:05 -08:00

6 lines
158 B
JavaScript

function getContentTypeHeader(type) {
return type === 'application/javascript' ? type + '; charset=utf-8' : type;
}
module.exports = getContentTypeHeader;