From 800c9eb24bbc43740c612227a693d006180fe255 Mon Sep 17 00:00:00 2001 From: Pole Date: Tue, 30 Apr 2024 18:02:37 +0800 Subject: [PATCH] fix --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index e410e3b..7ad43e1 100644 --- a/http.go +++ b/http.go @@ -28,7 +28,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.Header().Set(k, v) } - if s.StreamParser != nil { + if s.StreamParser == nil { s.StreamParser = streamParser(r) } // Get the StreamID