mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 00:34:01 +08:00
集群设置--网站设置增加“服务器旗标”设置
This commit is contained in:
@@ -1717,6 +1717,11 @@ func (this *HTTPRequest) fixRequestHeader(header http.Header) {
|
||||
|
||||
// ProcessResponseHeaders 处理自定义Response Header
|
||||
func (this *HTTPRequest) ProcessResponseHeaders(responseHeader http.Header, statusCode int) {
|
||||
// Server Name
|
||||
if this.nodeConfig != nil && this.nodeConfig.GlobalServerConfig != nil && len(this.nodeConfig.GlobalServerConfig.HTTPAll.ServerName) > 0 {
|
||||
responseHeader.Set("Server", this.nodeConfig.GlobalServerConfig.HTTPAll.ServerName)
|
||||
}
|
||||
|
||||
// 删除/添加/替换Header
|
||||
// TODO 实现AddTrailers
|
||||
if this.web.ResponseHeaderPolicy != nil && this.web.ResponseHeaderPolicy.IsOn {
|
||||
|
||||
Reference in New Issue
Block a user