mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-09-26 21:01:46 +08:00
try fix #240, add flush to grpcSimple
This commit is contained in:
@@ -123,7 +123,7 @@ func (s *Server) StartHandle(underlay net.Conn, newSubConnFunc func(net.Conn), f
|
||||
return
|
||||
}
|
||||
|
||||
//log.Println("request headers", rq.Header)
|
||||
//log.Println("request headers", rq.ContentLength, rq.Header)
|
||||
|
||||
shouldFallback := false
|
||||
|
||||
@@ -208,6 +208,9 @@ func (s *Server) StartHandle(underlay net.Conn, newSubConnFunc func(net.Conn), f
|
||||
}
|
||||
}
|
||||
rw.WriteHeader(http.StatusOK)
|
||||
if flusher, ok := rw.(http.Flusher); ok {
|
||||
flusher.Flush()
|
||||
}
|
||||
|
||||
sc := newServerConn(rw, rq)
|
||||
if s.closed {
|
||||
|
Reference in New Issue
Block a user