From ffc4318725017c7eda7ec11ca67d5de16ad1e8a8 Mon Sep 17 00:00:00 2001 From: Li4n0 Date: Sun, 11 Jul 2021 13:55:20 +0800 Subject: [PATCH] fix(http): fix the bug that http record url search does not work --- pkg/rhttp/record.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rhttp/record.go b/pkg/rhttp/record.go index 55f8226..490f90d 100644 --- a/pkg/rhttp/record.go +++ b/pkg/rhttp/record.go @@ -78,7 +78,7 @@ func ListRecords(c *gin.Context) { db.Where("method = ?", httpRecord.Method) } if httpRecord.URI != "" { - db.Where("path like ?", "%"+httpRecord.URI+"%") + db.Where("uri like ?", "%"+httpRecord.URI+"%") } if httpRecord.RemoteIP != "" { db.Where("remote_ip = ?", httpRecord.RemoteIP)