Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelef committed Jan 19, 2024
1 parent 2790891 commit a32b634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func main() {
userAgent := c.Get("User-Agent")
log.Printf("Request from IP: %s, Repo: %s User-Agent: %s\n", ip, repo, userAgent)

if ip == "10.0.0.101" {
if strings.Contains(userAgent, "python-requests") {
return c.Status(404).SendString("Custom 404 Error: Resource not found")
}

Expand Down

0 comments on commit a32b634

Please sign in to comment.