1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

add a more descriptive error message when request for robots.txt

This commit is contained in:
Jay Gabriels
2018-09-28 20:32:41 -07:00
parent c637430e9f
commit 6504ca702b

View File

@@ -562,6 +562,9 @@ func (o *oauth) ServeHTTP(w http.ResponseWriter, req *http.Request) {
if code == "" || state == "" { if code == "" || state == "" {
fmt.Printf("Invalid request received from: %v%v\n\n", req.RemoteAddr, req.RequestURI) fmt.Printf("Invalid request received from: %v%v\n\n", req.RemoteAddr, req.RequestURI)
if req.RequestURI == "/robots.txt" {
fmt.Printf("** You may have an app or browser plugin that needs to be turned off **\n\n")
}
} }
if code == "" { if code == "" {