Cleanup vmesshttp

This commit is contained in:
世界 2022-08-26 08:41:45 +08:00
parent 78a26fc139
commit f841459004
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 8 additions and 7 deletions

View file

@ -90,9 +90,8 @@ func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
}
writer.WriteHeader(http.StatusOK)
if f, ok := writer.(http.Flusher); ok {
f.Flush()
}
writer.(http.Flusher).Flush()
var metadata M.Metadata
metadata.Source = sHttp.SourceAddress(request)
if h, ok := writer.(http.Hijacker); ok {