mirror of
https://github.com/go-nunu/nunu-layout-advanced.git
synced 2025-09-26 20:41:33 +08:00
fix: rm X-Response-Time
This commit is contained in:
@@ -39,7 +39,6 @@ func ResponseLogMiddleware(logger *log.Logger) gin.HandlerFunc {
|
||||
startTime := time.Now()
|
||||
ctx.Next()
|
||||
duration := time.Since(startTime).String()
|
||||
ctx.Header("X-Response-Time", duration)
|
||||
logger.WithContext(ctx).Info("Response", zap.Any("response_body", blw.body.String()), zap.Any("time", duration))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user