tarampampam / error-pages

🚧 Pretty server's error pages in the docker image & git repository (for traefik, k8s, nginx and so on)
https://tarampampam.github.io/error-pages/
MIT License
833 stars 81 forks source link

fix: "Too big request header" #244

Closed alphanoob1337 closed 9 months ago

alphanoob1337 commented 9 months ago

Description

New environment variable READ_BUFFER_SIZE to fix HTTP error 431 "Too big request header" if used in a setup where a lot of Cookies could be present. Solves issue #238.

Please feel free to modify. So far I only tested this as docker image and not when deployed via CLI or with nginx.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (2c8ba9c) 48.13% compared to head (c40695f) 47.90%.

Files Patch % Lines
internal/cli/serve/command.go 0.00% 9 Missing :warning:
internal/http/server.go 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #244 +/- ## ========================================== - Coverage 48.13% 47.90% -0.23% ========================================== Files 32 32 Lines 1257 1263 +6 ========================================== Hits 605 605 - Misses 614 620 +6 Partials 38 38 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

tarampampam commented 9 months ago

:+1: Thank you so much for your contribution!