[反向代理]实验性添加TOA支持

This commit is contained in:
GoEdgeLab
2020-12-03 10:17:28 +08:00
parent 8d7d52223a
commit ff08a1e6f3
15 changed files with 228 additions and 18 deletions

View File

@@ -42,5 +42,5 @@ func (this *HTTPRequest) write502(err error) {
}
this.processResponseHeaders(statusCode)
this.writer.WriteHeader(statusCode)
_, _ = this.writer.Write([]byte(http.StatusText(statusCode)))
_, _ = this.writer.Write([]byte("502 Bad Gateway"))
}