Repository navigation
v0.13.1
Fixes PDFStream on Gin v1.11 and later, and on HTTP/2. The Gin floor rises to v1.12.0; the module stays on 0.13, the API's major.minor, so this ships as a patch.
Added
- A documentation site at https://poli-page.github.io/gin/, built from
docs/and deployed by the new Docs workflow. It replaces the six pages that were indocs/*.md, and the README links to the site. - CodeQL workflow, and coverage uploaded to Codecov from CI.
- The README badge row, as on
poli-page/sdk-goand with a Gin chip.
Changed
go.modrequires Ginv1.12.0(wasv1.10.0).- The Release workflow creates the GitHub Release for the pushed tag, with the
CHANGELOG.mdsection as its notes, once its version checks pass. - CI runs the suite on Gin
v1.11.0andv1.12.0too, next tov1.9.1andv1.10.0. Coverage is uploaded from thev1.12.0leg only.
Fixed
PDFStream: a failure after the first chunk ended as a short200that looks complete in two cases: on Gin v1.11 and later behind a writer wrapper withoutUnwrap(such asgin-contrib/gzip), because Gin'sHijacknow refuses once body bytes are written; and over HTTP/2 behindgin.Recovery(). The helper no longer hijacks: it sets a write deadline in the past on the server's own writer, found throughUnwrapand through the writer a wrapper embeds. The client seesunexpected EOFon HTTP/1.x and a stream reset on HTTP/2, behindgin.Recovery()too, andnet/httpno longer logsresponse.Write on hijacked connection.