diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 665084f..de1e170 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: test: strategy: matrix: - go: [ '1.21.x', '1.22.x' ] + go: [ '1.22.x', '1.23.x' ] os: [ ubuntu-latest ] runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 16c2d0c..c8191fd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Full documentation is available on the official website: https://req.cool. **Install** -You first need [Go](https://go.dev/) installed (version 1.20+ is required), then you can use the below Go command to install req: +You first need [Go](https://go.dev/) installed (version 1.22+ is required), then you can use the below Go command to install req: ``` sh go get github.com/imroc/req/v3 diff --git a/go.mod b/go.mod index ed1d894..ef6f380 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,6 @@ module github.com/imroc/req/v3 go 1.22.0 -toolchain go1.23.1 - require ( github.com/andybalholm/brotli v1.1.0 github.com/hashicorp/go-multierror v1.1.1 diff --git a/transport.go b/transport.go index b2bd31f..69c8932 100644 --- a/transport.go +++ b/transport.go @@ -583,7 +583,7 @@ func (t *Transport) EnableHTTP3() { } return } - if !(minorVersion >= 20 && minorVersion <= 21) { + if minorVersion < 22 || minorVersion > 23 { if t.Debugf != nil { t.Debugf("%s is not support http3", v) }