mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-09 19:30:30 +08:00
WAF在输出内容时也加入自定义的响应报头
This commit is contained in:
@@ -843,7 +843,7 @@ func (this *HTTPWriter) WriteHeader(statusCode int) {
|
||||
|
||||
// Send 直接发送内容,并终止请求
|
||||
func (this *HTTPWriter) Send(status int, body string) {
|
||||
this.req.processResponseHeaders(this.Header(), status)
|
||||
this.req.ProcessResponseHeaders(this.Header(), status)
|
||||
|
||||
// content-length
|
||||
_, hasContentLength := this.Header()["Content-Length"]
|
||||
|
||||
Reference in New Issue
Block a user