Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

3 changed files with 6 additions and 8 deletions

4
go.mod
View File

@ -1,5 +1,5 @@
module go.balki.me/remote-local-storage module go.balki.me/remote-local-storage
go 1.23.4 go 1.23.0
require go.balki.me/anyhttp v0.4.0 require go.balki.me/anyhttp v0.3.0

4
go.sum
View File

@ -1,2 +1,2 @@
go.balki.me/anyhttp v0.4.0 h1:K639Mc8qCIO5B6ugLJCLQenkwxh9rihEK5JZ/xNfvV0= go.balki.me/anyhttp v0.3.0 h1:WtBQ0rnkg567sX/O4ij/+qBbdCIUt5VURSe718sITBY=
go.balki.me/anyhttp v0.4.0/go.mod h1:JhfekOIjgVODoVqUCficjpIgmB3wwlB7jhN0eN2EZ/s= go.balki.me/anyhttp v0.3.0/go.mod h1:JhfekOIjgVODoVqUCficjpIgmB3wwlB7jhN0eN2EZ/s=

View File

@ -25,9 +25,7 @@ func main() {
flag.Parse() flag.Parse()
http.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) { http.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
if _, err := w.Write([]byte("<h2>Error!</h2><p>Check your webserver config, You should not see this!</p>")); err != nil { w.Write([]byte("<h2>Error!</h2><p>Check your webserver config, You should not see this!</p>"))
log.Panic(err)
}
}) })
http.HandleFunc("/wrap/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/wrap/", func(w http.ResponseWriter, r *http.Request) {
@ -41,7 +39,7 @@ func main() {
log.Panic(err) log.Panic(err)
} }
if err := os.WriteFile(*dumpFile, data, 0o600); err != nil { if err := os.WriteFile(*dumpFile, data, 0o400); err != nil {
log.Panic(err) log.Panic(err)
} }