From b087ac8dd1c752f8036f7685ab24ec0b9375aa60 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Thu, 12 Jul 2018 14:25:27 -0400 Subject: [PATCH] Added charset to raw content type Closes #230 --- lib/document_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/document_handler.js b/lib/document_handler.js index e5a6b56..83eb141 100644 --- a/lib/document_handler.js +++ b/lib/document_handler.js @@ -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 {