mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-28 15:15:49 +08:00
Update internal/api/modules/amp/proxy.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -189,7 +189,7 @@ 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; return 499 without logging
|
||||
// Client-side cancellations are common during polling; suppress logging in this case
|
||||
if err == context.Canceled {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user