From 23ce82d23752ed77c6ad15277dc8f56b5eb6f33c Mon Sep 17 00:00:00 2001 From: kychen Date: Sat, 30 Sep 2017 15:55:56 +0800 Subject: [PATCH] Fixed 'get does not allow body content' when using request in node environment --- templates/method.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/method.mustache b/templates/method.mustache index 5151e26a..38224827 100644 --- a/templates/method.mustache +++ b/templates/method.mustache @@ -13,7 +13,7 @@ } {{#isES6}}let{{/isES6}}{{^isES6}}var{{/isES6}} deferred = {{#isNode}}Q{{/isNode}}{{^isNode}}$q{{/isNode}}.defer(); {{#isES6}}let{{/isES6}}{{^isES6}}var{{/isES6}} domain = this.domain, path = '{{&path}}'; - {{#isES6}}let{{/isES6}}{{^isES6}}var{{/isES6}} body = {}, queryParameters = {}, headers = {}, form = {}; + {{#isES6}}let{{/isES6}}{{^isES6}}var{{/isES6}} body, queryParameters = {}, headers = {}, form = {}; {{#isSecure}} headers = this.setAuthHeaders(headers);