From 6f2fbdcbaec2a30de1fe25e6ff4ea6b82a0a3c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=8C=80=ED=9D=AC?= Date: Thu, 12 Feb 2026 10:30:05 +0900 Subject: [PATCH] Update internal/api/modules/amp/proxy.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- internal/api/modules/amp/proxy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/api/modules/amp/proxy.go b/internal/api/modules/amp/proxy.go index e2b68b85..c9b992cb 100644 --- a/internal/api/modules/amp/proxy.go +++ b/internal/api/modules/amp/proxy.go @@ -190,7 +190,8 @@ func createReverseProxy(upstreamURL string, secretSource SecretSource) (*httputi // Error handler for proxy failures proxy.ErrorHandler = func(rw http.ResponseWriter, req *http.Request, err error) { // Client-side cancellations are common during polling; suppress logging in this case - if err == context.Canceled { + if errors.Is(err, context.Canceled) { + rw.WriteHeader(gin.StatusClientClosedRequest) return } log.Errorf("amp upstream proxy error for %s %s: %v", req.Method, req.URL.Path, err)