Skip to content

Commit 504a1e6

Browse files
author
Caolan McMahon
committed
add charset to content-type header for modules.js attachment
1 parent 6bd5316 commit 504a1e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/attachment.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var tryRequire = function (a, b) {
1111
};
1212

1313
var fs = require('fs'),
14-
mime = require('mime'),
1514
jsp = require('uglify-js/lib/parse-js'),
1615
pro = require('uglify-js/lib/process'),
1716
modules = require('kanso-utils/modules'),
@@ -61,7 +60,7 @@ module.exports = function (root, path, settings, doc, callback) {
6160
doc._attachments = {};
6261
}
6362
doc._attachments['modules.js'] = {
64-
'content_type': mime.lookup('modules.js'),
63+
'content_type': 'application/json; charset=utf-8',
6564
'data': new Buffer(data).toString('base64')
6665
};
6766

0 commit comments

Comments
 (0)