Skip to content

Commit 6213f03

Browse files
authored
fix(operation): 修复操作日志中间件,record.Resp写错的问题 (flipped-aurora#1342)
1 parent 292e3d9 commit 6213f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/middleware/operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func OperationRecord() gin.HandlerFunc {
113113
// 截断
114114
newBody := respPool.Get().([]byte)
115115
copy(newBody, record.Resp)
116-
record.Body = string(newBody)
116+
record.Resp = string(newBody)
117117
defer respPool.Put(newBody[:0])
118118
}
119119
}

0 commit comments

Comments
 (0)