unpkg/modules/utils/getContentTypeHeader.js

4 lines
133 B
JavaScript

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