From 3788c8c9fd5a8af05c00cca1d44be817c4516b60 Mon Sep 17 00:00:00 2001 From: bel Date: Tue, 25 Oct 2022 22:50:11 -0600 Subject: [PATCH 1/2] vanilla --- vanilla.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vanilla.go diff --git a/vanilla.go b/vanilla.go new file mode 100644 index 0000000..34f8f06 --- /dev/null +++ b/vanilla.go @@ -0,0 +1,12 @@ +package main + +import ( + "fmt" + "net/http" +) + +func main() { + http.ListenAndServe(":9090", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf("%s %s\n", r.Method, r.URL) + })) +} From da4937c48ada91c85be6e5028e07e7b7944c5572 Mon Sep 17 00:00:00 2001 From: bel Date: Tue, 25 Oct 2022 22:50:27 -0600 Subject: [PATCH 2/2] whoops --- vanilla.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vanilla.go b/vanilla.go index 34f8f06..6fe35c4 100644 --- a/vanilla.go +++ b/vanilla.go @@ -7,6 +7,6 @@ import ( func main() { http.ListenAndServe(":9090", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - fmt.Fprintf("%s %s\n", r.Method, r.URL) + fmt.Fprintf(w, "%s %s\n", r.Method, r.URL) })) }