fix(http): fix the bug that http record url search does not work

This commit is contained in:
Li4n0
2021-07-11 13:55:20 +08:00
parent 8023a9b021
commit ffc4318725
+1 -1
View File
@@ -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)