Fix boolean value handling in HTTP request body (#1515)

* fix boolean http body handling

* fix typo in parameter name
This commit is contained in:
William Cheng
2018-11-24 16:42:32 +08:00
committed by GitHub
parent 0ba9278308
commit f8ada391c4
112 changed files with 648 additions and 117 deletions

View File

@@ -399,7 +399,7 @@ class ApiClient {
}
}
}
} else if (bodyParam) {
} else if (bodyParam !== null && bodyParam !== undefined) {
request.send(bodyParam);
}
@@ -586,4 +586,4 @@ ApiClient.CollectionFormatEnum = {
* @type {module:ApiClient}
*/
ApiClient.instance = new ApiClient();
export default ApiClient;
export default ApiClient;