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