Skip to content

chore: bump github.com/valyala/fasthttp from 1.79.0 to 1.80.0 - #1808

Merged
ernado merged 1 commit into
mainfrom
dependabot/go_modules/github.com/valyala/fasthttp-1.80.0
Nov 26, 2026
Merged

ernado merged 1 commit into
mainfrom
dependabot/go_modules/github.com/valyala/fasthttp-1.80.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/valyala/fasthttp from 1.79.0 to 1.80.0.

Release notes

Sourced from github.com/valyala/fasthttp's releases.

v1.80.0

v1.80.0 fixes client connection desynchronization when skipping response bodies and preserves cache variation headers during compression. It also adds helper APIs for downstream frameworks, makes parser errors matchable, and improves redirects, compression negotiation, and repeated-header handling.

Security fixes and hardening

  • Skipping a response body no longer desynchronizes later requests. Reusing a Response after HEAD no longer makes subsequent requests skip their bodies. When a caller explicitly skips a potentially present body, Client and HostClient close the connection instead of pooling it with unread bytes. PipelineClient reads and discards the body so the next pipelined response starts at the correct boundary. The caller's SkipBody setting is preserved. #2533
  • Compression preserves every Vary line. Adding Accept-Encoding no longer removes later Vary fields, such as Vary: Cookie. This fixes a regression that could let a shared cache reuse a response without considering all of its original variation criteria. Both CompressHandler and compressed static-file serving are covered. #2598
  • Unsigned float parsing rejects non-finite values and negative zero. ParseUfloat and the argument getters that use it now reject NaN, infinity, and -0. Finite formats accepted by strconv.ParseFloat, including a leading +, digit separators, and hexadecimal floats, remain supported. #2546

Features

  • Bounded decompression helpers work directly on byte slices. AppendGunzipBytesWithLimit, AppendInflateBytesWithLimit, AppendUnbrotliBytesWithLimit, and AppendUnzstdBytesWithLimit append decoded data while enforcing a limit on newly decoded bytes. Existing data in the destination does not count toward the limit. Exceeding the limit returns ErrBodyTooLarge; a non-positive limit leaves output unlimited. The zstd helper also limits decoder window size when a positive limit is supplied. #2520
  • Frameworks can inspect header normalization and reuse redirect helpers. RequestHeader.NormalizingDisabled() and ResponseHeader.NormalizingDisabled() expose the current setting. HasNonHTTPSchemeWithoutAuthority identifies locations such as mailto: and native-app callbacks, and DefaultMaxRedirectsCount exports the existing default of 16. DoRedirects continues to use the count explicitly supplied by its caller. #2520
  • Unsupported methods and unknown transfer codings have matchable errors. errors.Is can identify ErrUnsupportedRequestMethod regardless of SecureErrorLogMessage. The new ErrUnknownTransferCoding distinguishes a well-formed but unsupported transfer coding from malformed framing and also matches ErrUnsupportedTransferEncoding. Custom error handlers can use these distinctions to choose between 501 and 400 responses; malformed request fields and targets still take precedence over an unknown coding. #2594

HTTP compatibility and redirects

  • Compression negotiation checks all supplied encodings. HasAcceptEncoding scans every Accept-Encoding header line and continues after a matching q=0 member, so a later acceptable occurrence is considered. Compressible media types are also recognized case-insensitively. #2600, #2590, #2606
  • Directory redirects preserve the client-facing path. For ordinary origin-form request targets, FS adds the trailing slash to the original encoded path and retains the query string. Prefix stripping and virtual-host rewriting no longer expose the internal filesystem lookup path in the redirect. #2551
  • DoRedirects preserves URL credentials on the initial request. Relative redirects retain URI credentials, while absolute redirects use only their own userinfo. An explicit Authorization header still takes precedence and follows the existing host-based forwarding rules. #2531
  • URI updates separate queries from fragments. Updating a URI with ?next=2#new now stores next=2 as the query and new as the fragment, keeping the fragment out of the HTTP request line. Explicit empty query delimiters are preserved, including a redirect target ending in ?. Hosts with an empty port, such as example.com: or [::1]:, now receive the scheme's default port when dialing. #2592, #2603
  • Repeated cookies and suppressed content types retain their meaning. ResponseHeader.PeekAll("Set-Cookie") returns each cookie separately instead of joining them into one value; Peek is unchanged. Adapted net/http handlers that set Content-Type to nil or empty now send no default content type, on both buffered and flushed responses. #2599, #2556

This release also adds a WebSocket README, reorganizes its tests, addresses intermittent CI failures, and clarifies retry callback eligibility and fragmented input to Request.Read.

What's Changed

Security and hardening

Features

Fixes

... (truncated)

Commits
  • b0796cf feat: make the unsupported method and unknown transfer coding errors matchabl...
  • e895c9d fix(header): 按媒体类型的大小写无关规则启用压缩 (#2606)
  • 09b0c15 docs: explain fragmented input to Request.Read (#2605)
  • c272d38 docs: clarify retry callback eligibility (#2604)
  • 8437e58 fasthttpadaptor: send no Content-Type when the handler sets it to nil (#2556)
  • 2d242b5 fix: don't drop later Vary lines when adding Accept-Encoding (#2598)
  • 9344d82 feat: add helper APIs for downstream frameworks (#2520)
  • 3a6fbfb fix(header): return each Set-Cookie value from ResponseHeader.PeekAll (#2599)
  • 3fa143b fix: separate fragments in query-only URI updates (#2592)
  • 08ce70d fix(header): read every Accept-Encoding line in HasAcceptEncoding (#2600)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.79.0 to 1.80.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](valyala/fasthttp@v1.79.0...v1.80.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-version: 1.80.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 26, 2026
@ernado
ernado merged commit d62ffb2 into main Nov 26, 2026
17 checks passed
@ernado
ernado deleted the dependabot/go_modules/github.com/valyala/fasthttp-1.80.0 branch November 26, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant