Merge pull request #1427 from lucian303/fix-validator-https-detection
Fix validator's https detection
This commit is contained in:
@@ -62,7 +62,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
|||||||
this.model.validatorUrl = null;
|
this.model.validatorUrl = null;
|
||||||
} else {
|
} else {
|
||||||
// Default validator
|
// Default validator
|
||||||
if(window.location.protocol === 'https') {
|
if(window.location.protocol === 'https:') {
|
||||||
this.model.validatorUrl = 'https://online.swagger.io/validator';
|
this.model.validatorUrl = 'https://online.swagger.io/validator';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user