From 798ad11924f438f1d24cc2f09531fae79e0dc918 Mon Sep 17 00:00:00 2001 From: Patricio Gonzalez Vivo Date: Sun, 15 Mar 2015 17:48:06 -0400 Subject: [PATCH] overrideMimeType --- src/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 84a1c51..f1e81ad 100644 --- a/src/main.js +++ b/src/main.js @@ -114,7 +114,9 @@ function fetchHTTP(url, methood){ } } request.open(methood ? methood : 'GET', url, false); - request.send(); + request.overrideMimeType("text/plain"); + // request.overrideMimeType("text/html"); + request.send(null); return response; }