mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-27 18:40:28 +08:00
WAF在输出内容时也加入自定义的响应报头
This commit is contained in:
@@ -44,9 +44,9 @@ func (this *HTTPRequest) doURL(method string, url string, host string, statusCod
|
||||
|
||||
// Header
|
||||
if statusCode <= 0 {
|
||||
this.processResponseHeaders(this.writer.Header(), resp.StatusCode)
|
||||
this.ProcessResponseHeaders(this.writer.Header(), resp.StatusCode)
|
||||
} else {
|
||||
this.processResponseHeaders(this.writer.Header(), statusCode)
|
||||
this.ProcessResponseHeaders(this.writer.Header(), statusCode)
|
||||
}
|
||||
|
||||
if supportVariables {
|
||||
|
||||
Reference in New Issue
Block a user