mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-27 00:51:55 +08:00
fix(http): fix the bug that http record url search does not work
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ func ListRecords(c *gin.Context) {
|
|||||||
db.Where("method = ?", httpRecord.Method)
|
db.Where("method = ?", httpRecord.Method)
|
||||||
}
|
}
|
||||||
if httpRecord.URI != "" {
|
if httpRecord.URI != "" {
|
||||||
db.Where("path like ?", "%"+httpRecord.URI+"%")
|
db.Where("uri like ?", "%"+httpRecord.URI+"%")
|
||||||
}
|
}
|
||||||
if httpRecord.RemoteIP != "" {
|
if httpRecord.RemoteIP != "" {
|
||||||
db.Where("remote_ip = ?", httpRecord.RemoteIP)
|
db.Where("remote_ip = ?", httpRecord.RemoteIP)
|
||||||
|
|||||||
Reference in New Issue
Block a user