Skip to content

Commit

Permalink
Merge pull request #75 from jduimovich/security-scan-css-fix
Browse files Browse the repository at this point in the history
security fix - remove script injection
  • Loading branch information
jduimovich authored Aug 20, 2024
2 parents fd35738 + 06795f2 commit 04045a1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions templates/devfile-sample-go-dance/content/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ func main() {
http.ListenAndServe(fmt.Sprintf("0.0.0.0:%s", port), nil)
}

func HelloServer(w http.ResponseWriter, r *http.Request) {
path := r.URL.Path[1:]
if path != "" {
fmt.Fprintf(w, "Hello, %s!", r.URL.Path[1:])
} else {
fmt.Fprint(w, "Hello World!")
}
func HelloServer(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello World!")
}

0 comments on commit 04045a1

Please sign in to comment.