Skip to content

Commit 2d348c3

Browse files
committed
fix: add return
1 parent 8c4afb7 commit 2d348c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

middleware.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func RequestLoggingWithEcho(config *Config) echo.MiddlewareFunc {
9191
}
9292

9393
// SetContext for CloudFunctions
94-
func SetContext(config *Config, w http.ResponseWriter, r *http.Request) {
94+
func SetContext(config *Config, w http.ResponseWriter, r *http.Request) *http.Request {
9595
before := time.Now()
9696

9797
traceId := getTraceId(r)
@@ -124,6 +124,7 @@ func SetContext(config *Config, w http.ResponseWriter, r *http.Request) {
124124
_, _ = fmt.Fprintln(os.Stderr, err.Error())
125125
}
126126
}()
127+
return r
127128
}
128129

129130
func getTraceId(r *http.Request) string {

0 commit comments

Comments
 (0)