Merge pull request #2755 from buunguyen/master

Use loadSpec option of latest swagger client
This commit is contained in:
shockey
2017-03-25 00:57:46 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -11,7 +11,9 @@ export default function downloadUrlPlugin (toolbox) {
let { fetch } = fn
url = url || specSelectors.url()
specActions.updateLoadingStatus("loading")
fetch(url, {
fetch({
url,
loadSpec: true,
headers: {
"Accept": "application/json"
}