From 2571115e79bb2d60743eb8214ed5936261943fd3 Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Sat, 5 Sep 2015 15:44:51 +0900 Subject: [PATCH] _http_client: add PUT,TRACE methods to support There are two more http methods to support: PUT,TRACE Add put, trace methods to support --- lib/_http_client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/_http_client.js b/lib/_http_client.js index e490dce5d821d6..80865727e0c058 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -99,6 +99,8 @@ function ClientRequest(options, cb) { method === 'HEAD' || method === 'DELETE' || method === 'OPTIONS' || + method === 'PUT' || + method === 'TRACE' || method === 'CONNECT') { self.useChunkedEncodingByDefault = false; } else {