From 93e962a7d12447ad086b5a4b611272278b447308 Mon Sep 17 00:00:00 2001 From: Vladimir Alaev Date: Thu, 21 Nov 2013 15:10:37 +0200 Subject: [PATCH] bem server: open content files in binary mode (BEM-1448) --- lib/base-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base-server.js b/lib/base-server.js index e4b28f38..1703f074 100644 --- a/lib/base-server.js +++ b/lib/base-server.js @@ -286,7 +286,7 @@ exports.Server = INHERIT({ response.status = 200; response.charset = 'binary'; response.headers = { 'content-type': MIME.lookup(path) }; - response.body = QFS.open(path); + response.body = QFS.open(path, 'b'); return response; };