Skip to content

Commit e0687b0

Browse files
committed
Merge pull request #1128 from shuisman/patch-2
Update default validator with correct protocol
2 parents 5d5606b + e127bf3 commit e0687b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/javascript/view/MainView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
6868
} else {
6969

7070
// Default validator
71-
this.model.validatorUrl = 'http://online.swagger.io/validator';
71+
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
7272
}
7373
}
7474
},

0 commit comments

Comments
 (0)