[javascript] Fix empty response body when schema type is string (#5759)

* [javascript] Fix response body when return type is String.

* [javascript] Regenerate javascript petstores with fixed String return type.
This commit is contained in:
Cliffano Subagio
2017-06-05 02:20:11 +10:00
committed by wing328
parent ef07a02a01
commit 9bc8f37aa6
5 changed files with 10 additions and 0 deletions

View File

@@ -423,6 +423,8 @@
if (returnType === 'Blob') { if (returnType === 'Blob') {
request.responseType('blob'); request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('string');
} }
// Attach previously saved cookies, if enabled // Attach previously saved cookies, if enabled

View File

@@ -429,6 +429,8 @@
if (returnType === 'Blob') { if (returnType === 'Blob') {
request.responseType('blob'); request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('string');
} }
// Attach previously saved cookies, if enabled // Attach previously saved cookies, if enabled

View File

@@ -420,6 +420,8 @@
if (returnType === 'Blob') { if (returnType === 'Blob') {
request.responseType('blob'); request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('string');
} }
// Attach previously saved cookies, if enabled // Attach previously saved cookies, if enabled

View File

@@ -420,6 +420,8 @@
if (returnType === 'Blob') { if (returnType === 'Blob') {
request.responseType('blob'); request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('string');
} }
// Attach previously saved cookies, if enabled // Attach previously saved cookies, if enabled

View File

@@ -429,6 +429,8 @@
if (returnType === 'Blob') { if (returnType === 'Blob') {
request.responseType('blob'); request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('string');
} }
// Attach previously saved cookies, if enabled // Attach previously saved cookies, if enabled