From a9a429824c6ff2fa055e0bdc00914c4c4b3b4dc9 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 18 Sep 2024 14:52:56 +0300 Subject: [PATCH] return if the sessionId cannot be retrieved from the request --- internal/http/at_session_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/at_session_handler.go b/internal/http/at_session_handler.go index 4a0cafa..a2a5188 100644 --- a/internal/http/at_session_handler.go +++ b/internal/http/at_session_handler.go @@ -32,6 +32,7 @@ func (ash *ATSessionHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) if err != nil { logg.ErrorCtxf(rqs.Ctx, "", "header processing error", err) ash.writeError(w, 400, err) + return } rqs.Config = cfg rqs.Input, err = rp.GetInput(req)