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

@@ -12,7 +12,7 @@ func (this *HTTPRequest) doPlanExpires() {
this.tags = append(this.tags, "plan")
var statusCode = http.StatusNotFound
this.processResponseHeaders(statusCode)
this.processResponseHeaders(this.writer.Header(), statusCode)
this.writer.WriteHeader(statusCode)
_, _ = this.writer.WriteString(this.Format(serverconfigs.DefaultPlanExpireNoticePageBody))