Websocket支持自定义响应Header

This commit is contained in:
刘祥超
2022-09-23 14:21:53 +08:00
parent 0973765919
commit fce2879567
15 changed files with 71 additions and 45 deletions

View File

@@ -44,9 +44,9 @@ func (this *HTTPRequest) doURL(method string, url string, host string, statusCod
// Header
if statusCode <= 0 {
this.processResponseHeaders(resp.StatusCode)
this.processResponseHeaders(this.writer.Header(), resp.StatusCode)
} else {
this.processResponseHeaders(statusCode)
this.processResponseHeaders(this.writer.Header(), statusCode)
}
if supportVariables {