We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba4e379 commit 167d3a7Copy full SHA for 167d3a7
404-server/server.go
@@ -26,6 +26,7 @@ import (
26
var port = flag.Int("port", 8080, "Port number to serve default backend 404 page.")
27
28
func main() {
29
+ flag.Parse()
30
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
31
w.WriteHeader(http.StatusNotFound)
32
fmt.Fprint(w, "default backend - 404")
0 commit comments