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 20bac9e + 2cff409 commit 506adc5Copy full SHA for 506adc5
lib/client.js
@@ -317,7 +317,7 @@ SwaggerClient.prototype.buildFromSpec = function (response) {
317
if (typeof this.scheme === 'undefined' && typeof this.schemes === 'undefined' || this.schemes.length === 0) {
318
if(typeof window !== 'undefined') {
319
// use the window scheme
320
- this.scheme = window.location.scheme;
+ this.scheme = window.location.protocol.replace(':','');
321
}
322
else {
323
this.scheme = location.scheme || 'http';
0 commit comments