From 8e8f8ee06e867c82236794b49ea1ed10ff559ced Mon Sep 17 00:00:00 2001 From: CornierKhan1 Date: Mon, 3 Dec 2018 12:37:57 +1100 Subject: [PATCH] added default case --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 3661835..458ba6f 100644 --- a/main.go +++ b/main.go @@ -366,6 +366,9 @@ func handler(w http.ResponseWriter, r *http.Request) { `) fmt.Println("Delivered response!") + default: + fmt.Fprintf(w, "WiiSOAP can't handle this. Try again later or actually use a Wii instead of a computer.") + } // TODO: Add NUS and CAS SOAP to the case list.