Merge pull request #231 from seejohnrun/ensure-raw-utf8
Added charset to raw content type
This commit is contained in:
commit
ee1c1c0856
|
@ -36,7 +36,7 @@ DocumentHandler.prototype.handleRawGet = function(key, response, skipExpire) {
|
|||
this.store.get(key, function(ret) {
|
||||
if (ret) {
|
||||
winston.verbose('retrieved raw document', { key: key });
|
||||
response.writeHead(200, { 'content-type': 'text/plain' });
|
||||
response.writeHead(200, { 'content-type': 'text/plain; charset=UTF-8' });
|
||||
response.end(ret);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user