We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3aade85 + 1446827 commit 1b5af99Copy full SHA for 1b5af99
lib/client.js
@@ -277,7 +277,7 @@ SwaggerClient.prototype.buildFromSpec = function (response) {
277
if (typeof this.scheme === 'undefined' && typeof this.schemes === 'undefined' || this.schemes.length === 0) {
278
this.scheme = location.scheme || 'http';
279
} else if (typeof this.scheme === 'undefined') {
280
- this.scheme = this.schemes[0];
+ this.scheme = this.schemes[0] || location.scheme;
281
}
282
283
if (typeof this.host === 'undefined' || this.host === '') {
0 commit comments