diff --git a/nginx/live-umm-gay.conf b/nginx/live-umm-gay.conf index 609e43c..0560139 100644 --- a/nginx/live-umm-gay.conf +++ b/nginx/live-umm-gay.conf @@ -28,4 +28,3 @@ server { proxy_read_timeout 1d; } } - diff --git a/wish-server/main.go b/wish-server/main.go index b5cab08..9ba9d17 100644 --- a/wish-server/main.go +++ b/wish-server/main.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "log" "net/http" "os" @@ -116,7 +115,7 @@ func HandleWHIP(res http.ResponseWriter, req *http.Request) { return } - offer, err := ioutil.ReadAll(req.Body) + offer, err := io.ReadAll(req.Body) if err != nil { logHTTPError(res, err.Error(), http.StatusInternalServerError) return @@ -200,7 +199,7 @@ func HandleWHEP(res http.ResponseWriter, req *http.Request) { return } - offer, err := ioutil.ReadAll(req.Body) + offer, err := io.ReadAll(req.Body) if err != nil { logHTTPError(res, err.Error(), http.StatusInternalServerError) return