From b52f8c384997a4acf0ce506296f8dff1d3a71405 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Fri, 24 Nov 2023 16:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E7=A3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- go.sum | 4 ++-- server/main.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 8b98ec7..3309356 100644 --- a/go.mod +++ b/go.mod @@ -48,4 +48,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace fusen-basic v0.0.0 => gitee.com/fusenpack/fusen-basic v0.0.5-0.20231121101006-c27585d89386 +replace fusen-basic v0.0.0 => gitee.com/fusenpack/fusen-basic v0.0.5-0.20231124072222-16de191b1dbe diff --git a/go.sum b/go.sum index 929f271..4b93127 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -gitee.com/fusenpack/fusen-basic v0.0.5-0.20231121101006-c27585d89386 h1:SlQpIMqtLEiOQWmwGXxD00k8rMI2ACqgOCyTcw9fR/Q= -gitee.com/fusenpack/fusen-basic v0.0.5-0.20231121101006-c27585d89386/go.mod h1:M6MEfmoOqiH6z2xfGb3WMd+jADI42flrUrNv2WoFE8A= +gitee.com/fusenpack/fusen-basic v0.0.5-0.20231124072222-16de191b1dbe h1:Ti0GAaJilLuKWFwbVy2aSzYga9YaVXvzHr3jK0FfpRM= +gitee.com/fusenpack/fusen-basic v0.0.5-0.20231124072222-16de191b1dbe/go.mod h1:M6MEfmoOqiH6z2xfGb3WMd+jADI42flrUrNv2WoFE8A= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= diff --git a/server/main.go b/server/main.go index 5ae3fe4..b6e187d 100644 --- a/server/main.go +++ b/server/main.go @@ -30,7 +30,7 @@ func main() { mux := runtime.NewServeMux( runtime.WithErrorHandler(func(ctx context.Context, sm *runtime.ServeMux, m runtime.Marshaler, w http.ResponseWriter, r *http.Request, err error) { log.Println(err) - w.Write([]byte("\n" + err.Error())) + w.Write([]byte("gateway: " + err.Error())) }), runtime.WithMetadata(logic.PassMetadata), runtime.WithForwardResponseOption(logic.ResponseHeaderMatcher),