Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4cca10301 | ||
|
|
8597884ec5 |
@@ -139,11 +139,6 @@ func (this *HTTPRequest) doHostRedirect() (blocked bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果跳转前后域名一致,则终止
|
|
||||||
if u.DomainAfter == reqHost {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
var scheme = u.DomainAfterScheme
|
var scheme = u.DomainAfterScheme
|
||||||
if len(scheme) == 0 {
|
if len(scheme) == 0 {
|
||||||
scheme = this.requestScheme()
|
scheme = this.requestScheme()
|
||||||
@@ -155,6 +150,11 @@ func (this *HTTPRequest) doHostRedirect() (blocked bool) {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 如果跳转前后域名一致,则终止
|
||||||
|
if u.DomainAfter == reqHost {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
this.ProcessResponseHeaders(this.writer.Header(), status)
|
this.ProcessResponseHeaders(this.writer.Header(), status)
|
||||||
|
|
||||||
// 参数
|
// 参数
|
||||||
|
|||||||
@@ -20,6 +20,6 @@ func (this *HTTPRequest) checkLnRequest() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *HTTPRequest) getLnOrigin(excludingNodeIds []int64) (originConfig *serverconfigs.OriginConfig, lnNodeId int64, hasMultipleNodes bool) {
|
func (this *HTTPRequest) getLnOrigin(excludingNodeIds []int64, urlHash uint64) (originConfig *serverconfigs.OriginConfig, lnNodeId int64, hasMultipleNodes bool) {
|
||||||
return nil, 0, false
|
return nil, 0, false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user