[JS] Fix JavaScript string return type (#5819)

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

* [javascript] Regenerate javascript petstores with fixed String return type.

* [javascript-es6] Fix response body when return type is string.
This commit is contained in:
Cliffano Subagio 2017-06-11 23:42:36 +10:00 committed by wing328
parent f163fdb980
commit dc7c1f8cb9

View File

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