From 8b05ef2def1887c12d7ab0b84c7a4d5db8e7d532 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 15 Dec 2016 09:15:37 -0800 Subject: [PATCH] http: fix html type for request. --- lib/http/request.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http/request.js b/lib/http/request.js index 7e879182..838ed224 100644 --- a/lib/http/request.js +++ b/lib/http/request.js @@ -562,6 +562,8 @@ function getType(type) { return 'application/x-www-form-urlencoded; charset=utf-8'; case 'json': return 'application/json; charset=utf-8'; + case 'html': + return 'text/html; charset=utf-8'; case 'text': return 'text/plain; charset=utf-8'; case 'binary':