Skip to content

Commit

Permalink
Update Go test (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p3r authored May 16, 2023
1 parent add7338 commit eca0672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/lang/security/injection/tainted-url-host.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func handlerOkFmt(w http.ResponseWriter, r *http.Request) {
} else {
url := fmt.Fprintf(w, "http://example.com%q", proxy)
}
// todook: tainted-url-host
// ok: tainted-url-host
resp, err := client.Post(url, "application/json", r.Body)
}
}
Expand Down Expand Up @@ -416,4 +416,4 @@ func main() {
http.HandleFunc("/ok", handleOk)
http.HandleFunc("/bad", handlerBad)
http.ListenAndServe(":8888", nil)
}
}

0 comments on commit eca0672

Please sign in to comment.