diff --git a/go.mod b/go.mod index ba50663..e56c89d 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module go.balki.me/remote-local-storage -go 1.23.0 +go 1.23.4 -require go.balki.me/anyhttp v0.3.0 +require go.balki.me/anyhttp v0.4.0 diff --git a/go.sum b/go.sum index 50912eb..63bffb4 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -go.balki.me/anyhttp v0.3.0 h1:WtBQ0rnkg567sX/O4ij/+qBbdCIUt5VURSe718sITBY= -go.balki.me/anyhttp v0.3.0/go.mod h1:JhfekOIjgVODoVqUCficjpIgmB3wwlB7jhN0eN2EZ/s= +go.balki.me/anyhttp v0.4.0 h1:K639Mc8qCIO5B6ugLJCLQenkwxh9rihEK5JZ/xNfvV0= +go.balki.me/anyhttp v0.4.0/go.mod h1:JhfekOIjgVODoVqUCficjpIgmB3wwlB7jhN0eN2EZ/s= diff --git a/main.go b/main.go index 4fb750a..9ee864b 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,9 @@ func main() { flag.Parse() http.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) { - w.Write([]byte("
Check your webserver config, You should not see this!
")) + if _, err := w.Write([]byte("Check your webserver config, You should not see this!
")); err != nil { + log.Panic(err) + } }) http.HandleFunc("/wrap/", func(w http.ResponseWriter, r *http.Request) {