diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 224191d..e09a9cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,9 +47,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + goarch: + - "386" + - amd64 go-version: - 1.26.x - 1.27.x + env: + GOARCH: ${{ matrix.goarch }} steps: - uses: actions/checkout@v7 diff --git a/http.go b/http.go index 8d9073c..70a788e 100644 --- a/http.go +++ b/http.go @@ -466,7 +466,7 @@ func WithMaxBodySize(maxBodyBytes int64) HTTPOption { if maxBodyBytes <= 0 || maxBodyBytes == math.MaxInt64 { return fmt.Errorf( "maximum body size must be positive and below %d: %d", - math.MaxInt64, + int64(math.MaxInt64), maxBodyBytes, ) }