You've already forked step-ca-cli
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:
@@ -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 == "" {
|
||||||
|
Reference in New Issue
Block a user