fix http handler for tunnel

This commit is contained in:
ginuerzh
2023-10-16 23:53:58 +08:00
parent 5dfbb59f8a
commit bf5311ddc3
3 changed files with 61 additions and 118 deletions

View File

@ -185,6 +185,7 @@ func (h *forwardHandler) handleHTTP(ctx context.Context, rw io.ReadWriter, log l
resp := &http.Response{
ProtoMajor: 1,
ProtoMinor: 1,
Header: http.Header{},
StatusCode: http.StatusServiceUnavailable,
}