WAF在输出内容时也加入自定义的响应报头

This commit is contained in:
刘祥超
2023-06-11 10:46:20 +08:00
parent d3caccbb55
commit 3e79b71afc
23 changed files with 64 additions and 48 deletions

View File

@@ -451,7 +451,7 @@ func (this *HTTPRequest) doOriginRequest(failedOriginIds []int64, failedLnNodeId
// 响应Header
this.writer.AddHeaders(resp.Header)
this.processResponseHeaders(this.writer.Header(), resp.StatusCode)
this.ProcessResponseHeaders(this.writer.Header(), resp.StatusCode)
// 是否需要刷新
var shouldAutoFlush = this.reverseProxy.AutoFlush || this.RawReq.Header.Get("Accept") == "text/event-stream"