Update default validator with correct protocol

Current code defaults to http protocol, but when package is installed in a https environment, the default validator should be securely available.
This commit is contained in:
shuisman
2015-04-07 18:37:02 +02:00
parent 1ea77868aa
commit e127bf3577

View File

@@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
} else {
// Default validator
this.model.validatorUrl = 'http://online.swagger.io/validator';
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
}
}
},