Skip to content

v1.25.0 — Go 1.25.10 + utls v1.8.2

Choose a tag to compare

@dteh dteh released this 23 May 16:34
· 6 commits to master since this release

Upstream Go: go1.25.10
utls: v1.8.2
go.mod directive: go 1.25.0
Supported Go versions: 1.25.0 – 1.25.10

First dhttp release on Go 1.25.x

Tracks upstream Go 1.25.10. The biggest internal restructure: Go 1.25 promoted synctest from internal/ to public testing/synctest and refactored a chunk of h2_bundle.go's encodeHeaders / validateHeaders into a new net/http/internal/httpcommon package.

dhttp impact

  • Vendored net/http/internal/httpcommon (new INTERNAL_DEPS entry).
  • Moved the HeaderOrder + PHeaderOrder hooks from the old h2_bundle.go encodeHeaders into httpcommon.EncodeHeaders (the new home). HTTP/2 pseudo-header ordering, request-header ordering, and the multi-codec Accept-Encoding default (gzip, deflate, br, zstd) all work as before.
  • Removed orphan http2encodeHeaders / http2validateHeaders / http2errNilRequestURL from h2_bundle.go; the new path routes through httpcommon.EncodeHeaders.
  • validateHeaders in httpcommon skips the magic ordering keys so they don't trip the header-field-name validator.
  • New upstream files csrf.go / csrf_test.go (CrossOriginProtection) vendor through unmodified.

Changes since v1.24.1

  • Bumped upstream tracking go1.24.13 → go1.25.10
  • go.mod directive go 1.24.0 → go 1.25.0
  • utls unchanged (v1.8.2)
  • Header-ordering hooks relocated to the new httpcommon package
  • Includes the Content-Length fix from v1.24.1