Browse Source

Only GET and DELETE requests should be automatically ended

Girish Ramakrishnan 7 years ago
parent
commit
d7c0826363
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/phonegapbuild.js

+ 1 - 1
lib/phonegapbuild.js

@@ -90,7 +90,7 @@ PhoneGapBuild.prototype.request = function(method, path, headers, next) {
     });
 
     req.on('error', function(e) { next(e); });
-    if (method !== "POST")
+    if (method === "GET" || method === "DELETE")
         req.end();
     return req;
 }