自动跳转到HTTPS可以设置允许和排除的域名

This commit is contained in:
GoEdgeLab
2021-07-26 11:23:57 +08:00
parent 26e62edd0c
commit b7942c3844
2 changed files with 12 additions and 4 deletions

View File

@@ -144,9 +144,10 @@ func (this *HTTPRequest) Do() {
// 自动跳转到HTTPS
if this.IsHTTP && this.web.RedirectToHttps != nil && this.web.RedirectToHttps.IsOn {
this.doRedirectToHTTPS(this.web.RedirectToHttps)
this.doEnd()
return
if this.doRedirectToHTTPS(this.web.RedirectToHttps) {
this.doEnd()
return
}
}
// Gzip