forked from quic-go/quic-go
use a buffered writer for the http3 response writer
This commit is contained in:
@@ -270,6 +270,7 @@ func (s *Server) handleRequest(sess quic.Session, str quic.Stream, decoder *qpac
|
||||
ctx = context.WithValue(ctx, http.LocalAddrContextKey, sess.LocalAddr())
|
||||
req = req.WithContext(ctx)
|
||||
responseWriter := newResponseWriter(str, s.logger)
|
||||
defer responseWriter.Flush()
|
||||
handler := s.Handler
|
||||
if handler == nil {
|
||||
handler = http.DefaultServeMux
|
||||
|
||||
Reference in New Issue
Block a user