updated client lib
This commit is contained in:
2
dist/lib/swagger-client.js
vendored
2
dist/lib/swagger-client.js
vendored
@@ -2822,7 +2822,7 @@ JQueryHttpClient.prototype.execute = function(obj) {
|
||||
if(contentType) {
|
||||
if(contentType.indexOf("application/json") === 0 || contentType.indexOf("+json") > 0) {
|
||||
try {
|
||||
out.obj = response.responseJSON || {};
|
||||
out.obj = response.responseJSON || JSON.parse(out.data) || {};
|
||||
} catch (ex) {
|
||||
// do not set out.obj
|
||||
log("unable to parse JSON content");
|
||||
|
||||
Reference in New Issue
Block a user