折磨
This commit is contained in:
parent
81df0950e3
commit
b52f8c3849
2
go.mod
2
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
|
||||
|
|
4
go.sum
4
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=
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user