Commit Graph

8 Commits

Author SHA1 Message Date
Erik Dubbelboer 6cd91f311b Match net/http sensitive header redirect policy (#2181)
* Match net/http sensitive header redirect policy

Strip sensitive headers in DoRedirects matching net/http's redirect policy.

Reported by @vnykmshr

* Add more headers
2026-04-25 03:01:41 +02:00
Erik Dubbelboer 0ad54a45d9 Update lint and fix new lint errors 2025-09-28 02:59:00 +02:00
Erik Dubbelboer c3050516d9 Fix lint and security issues
gosec was failing after the last update introduced some new checks.
2024-09-07 15:22:05 +02:00
Oleksandr Redko 9d6b470260 chore: Add missing dots at the end of comments (#1677) 2023-12-13 13:56:24 +08:00
Erik Dubbelboer 0e99e64ee8 Update golangci-lint and gosec (#1609) 2023-08-26 12:49:17 +02:00
ichx da7ff7a208 Add trailer support (#1165)
* Add trailer support

* fix issue and add documentation

* remove redundant code

* add error return for add/set trailer method

* fix lint error

* fix bad trailer error return issue and update bad content-length error

* update errNonNumericChars

* update errNonNumericChars

* fix issue about error and fix typo
2021-12-05 14:11:51 +01:00
Fenny 38e068a51c Fix XHR Typo (#735)
* Add third-party router / framework to README.md

* Fix XHR header

* Don't add fiber to the readme yet

 It needs more users and activity first. We don't just want to add any framework otherwise our readme will get super full.

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
2020-01-31 21:38:50 +01:00
Maxim Lebedev a4505cb573 Added headers keys constants 2019-05-28 18:04:24 +03:00