diff --git a/delete-bucket.go b/delete-bucket.go index 87ec9e8..614113d 100644 --- a/delete-bucket.go +++ b/delete-bucket.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "net/http" "github.com/gorilla/mux" @@ -20,6 +19,6 @@ func DeleteBucketHandler(s3 S3Client) http.Handler { code := http.StatusNoContent w.WriteHeader(code) - fmt.Fprint(w, http.StatusText(code)) + w.Write([]byte(http.StatusText(code))) }) } diff --git a/delete-object.go b/delete-object.go index b76c02b..0c374ee 100644 --- a/delete-object.go +++ b/delete-object.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "net/http" "github.com/gorilla/mux" @@ -20,6 +19,6 @@ func DeleteObjectHandler(s3 S3Client) http.Handler { code := http.StatusNoContent w.WriteHeader(code) - fmt.Fprint(w, http.StatusText(code)) + w.Write([]byte(http.StatusText(code))) }) }