Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Sep 10, 2024
1 parent db34124 commit fcc942e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fcc942e

Please sign in to comment.