fix: increase request header buffer size#123
Merged
mms-gianni merged 9 commits intoeverywall:release/v0.0.23from Apr 27, 2026
Merged
fix: increase request header buffer size#123mms-gianni merged 9 commits intoeverywall:release/v0.0.23from
mms-gianni merged 9 commits intoeverywall:release/v0.0.23from
Conversation
…ious package ecosystems.
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 6. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](actions/setup-go@v3...v6) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 6. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](pnpm/action-setup@v2...v6) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ions/dot-github/workflows/actions/setup-go-6 Bump actions/setup-go from 3 to 6 in /.github/workflows
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 4. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v2...v4) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ions/dot-github/workflows/docker/login-action-4 Bump docker/login-action from 2 to 4 in /.github/workflows
…ions/dot-github/workflows/pnpm/action-setup-6 Bump pnpm/action-setup from 2 to 6 in /.github/workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Increase Fiber's
ReadBufferSizefrom the 4 KB default to 16 KB.Why
Fiber's read buffer also limits the maximum incoming request header size. When Ladder is deployed behind reverse proxies such as Cloudflare Tunnel or Nginx Proxy Manager, proxy headers plus browser cookies can exceed the 4 KB default before Ladder's route handlers run.
This fixes
431 Request Header Fields Too Largeresponses seen with proxied browser requests.Reproduction
I reproduced this with Ladder behind Cloudflare Tunnel / NPM:
Request Header Fields Too LargeCookieheader through the public/proxied hostname reproduced the failureIP:PORTaccess worked, consistent with the separate browser cookie jar and fewer proxy-added headersValidation
gofmt -w cmd/main.gogo test ./...Fixes #89.