From 9d0b51fa2608d183c6e9d179544f0da07e734552 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 10 Nov 2021 21:25:51 +0800 Subject: [PATCH] fixes #1222 (#1223) --- rest/httpx/responses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/httpx/responses.go b/rest/httpx/responses.go index 644e3583..055f521b 100644 --- a/rest/httpx/responses.go +++ b/rest/httpx/responses.go @@ -24,7 +24,7 @@ func Error(w http.ResponseWriter, err error) { return } - code, body := errorHandler(err) + code, body := handler(err) if body == nil { w.WriteHeader(code) return