Skip to content

Commit

Permalink
Merge pull request #11 from ZeroGachis/chore/update-go
Browse files Browse the repository at this point in the history
chore: upgrade to go 1.22
  • Loading branch information
nicolasbriere1 authored May 13, 2024
2 parents 3d012c9 + 9fa07ec commit 65524ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"
)
Expand Down Expand Up @@ -81,7 +81,7 @@ func (cerbereConfig *Cerbere) ServeHTTP(rw http.ResponseWriter, req *http.Reques
return
}

body, err := ioutil.ReadAll(authResponse.Body)
body, err := io.ReadAll(authResponse.Body)
if err != nil {
http.Error(rw, err.Error(), http.StatusInternalServerError)
return
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/ZeroGachis/traefik-auth-middleware

go 1.15
go 1.22

0 comments on commit 65524ce

Please sign in to comment.