Skip to content

Commit

Permalink
test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Uttkarsh-raj committed Apr 3, 2024
1 parent 582a412 commit 0c6fd8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ func ProxyServer() gin.HandlerFunc {
}

model.RateLimiter.Requests[c.ClientIP()] = time.Now()

// For testing pourpose
if queryURL == "https://www.tests.com/" {
c.String(http.StatusOK, "<html><h1>Test Page</h1></html>")
}
}
}

Expand Down

0 comments on commit 0c6fd8b

Please sign in to comment.