From a73ff12c4135cbef57227327b8cc2dd2a3d157d1 Mon Sep 17 00:00:00 2001 From: Hossin Asaadi Date: Thu, 18 Jun 2026 15:14:40 +0100 Subject: [PATCH] fix splithttp nil panic --- transport/internet/splithttp/client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/transport/internet/splithttp/client.go b/transport/internet/splithttp/client.go index 47f6560a92b5..0e16a7ce725f 100644 --- a/transport/internet/splithttp/client.go +++ b/transport/internet/splithttp/client.go @@ -59,7 +59,10 @@ func (c *DefaultDialerClient) OpenStream(ctx context.Context, url string, sessio if body != nil { method = c.transportConfig.GetNormalizedUplinkHTTPMethod() // stream-up/one } - req, _ := http.NewRequestWithContext(context.WithoutCancel(ctx), method, url, body) + req, err := http.NewRequestWithContext(context.WithoutCancel(ctx), method, url, body) + if err != nil { + return nil, nil, nil, err + } c.transportConfig.FillStreamRequest(req, sessionId, "") wrc = &WaitReadCloser{Wait: make(chan struct{})}