Support plain text in response

Fixes #1109
Fixes #1111
This commit is contained in:
Mohsen Azimi
2015-04-15 12:05:46 -07:00
parent e0687b044d
commit e6664851b3
4 changed files with 15 additions and 3 deletions

View File

@@ -277,7 +277,7 @@ window.onOAuthComplete = function onOAuthComplete(token) {
}
}
});
window.authorizations.add(oauth2KeyName, new ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
window.swaggerUi.api.clientAuthorizations.add(oauth2KeyName, new SwaggerClient.ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
}
}
}