Skip to content

v0.13.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 08:20
· 8 commits to main since this release
64342fc

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 in docs/*.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-go and with a Gin chip.

Changed

  • go.mod requires Gin v1.12.0 (was v1.10.0).
  • The Release workflow creates the GitHub Release for the pushed tag, with the CHANGELOG.md section as its notes, once its version checks pass.
  • CI runs the suite on Gin v1.11.0 and v1.12.0 too, next to v1.9.1 and v1.10.0. Coverage is uploaded from the v1.12.0 leg only.

Fixed

  • PDFStream: a failure after the first chunk ended as a short 200 that looks complete in two cases: on Gin v1.11 and later behind a writer wrapper without Unwrap (such as gin-contrib/gzip), because Gin's Hijack now refuses once body bytes are written; and over HTTP/2 behind gin.Recovery(). The helper no longer hijacks: it sets a write deadline in the past on the server's own writer, found through Unwrap and through the writer a wrapper embeds. The client sees unexpected EOF on HTTP/1.x and a stream reset on HTTP/2, behind gin.Recovery() too, and net/http no longer logs response.Write on hijacked connection.