3765 Commits

Author SHA1 Message Date
RW
1197a22735
Update app.go
prepare release v2.52.9
v2.52.9
2025-07-20 15:43:40 +02:00
Juan Calderon-Perez
b60408c9bd
🐛 bug: Fix MIME type equality checks (#3603) 2025-07-20 14:54:11 +02:00
Juan Calderon-Perez
845f95f441
🐛 bug: Fix Content-Type comparison in Is() (#3537)
* fix: improve Is content type matching

* Update ctx.go

---------

Co-authored-by: RW <rene@gofiber.io>
2025-06-23 08:04:26 +02:00
Juan Calderon-Perez
1c037c4900
🧹 chore: Add upper index limit for parsers (#3503)
* add error for index overflow

* Update ctx_test.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update ctx_test.go

* Update ctx_test.go

* Update ctx_test.go

* Fix proxy tests and update parser index limit

* Fix proxy tests and enforce parser index limit

* test: fix index limit and proxy tests

* Fix proxy test helpers

* Update proxy_test.go

* fix index overflow error handling

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-10 08:45:49 +02:00
RW
40d14a9c71
🐛 fix: Embedded struct parsing (#3478)
* Fix "[Bug]: Incorrect Parsing of Slice by QueryParser() with Embedded Structs #2859"

* Fix "[Bug]: Incorrect Parsing of Slice by QueryParser() with Embedded Structs #2859"
2025-05-26 20:22:44 +02:00
RW
b6f077275f
Update AGENTS.md 2025-05-26 19:48:06 +02:00
RW
22c3c0ced9
Update app.go v2.52.8 2025-05-22 09:00:28 +02:00
RW
e115c08b8f
Merge commit from fork
* BodyParser: slice/array invalid range
- add test case

* BodyParser: slice/array invalid range
v2.52.7
2025-05-22 08:45:40 +02:00
René
d15355116c Update AGENTS.md 2025-05-20 07:29:08 +02:00
Juan Calderon-Perez
7db10b6976
docs: Add AGENTS.md (#3461)
Create AGENTS.md
2025-05-19 11:31:20 +02:00
RW
94e30d7124
🐛 Fix routing with mount and static (#3454)
* fix routing with mount and static

[Bug]: Static server in sub app does not work #3104
https://github.com/gofiber/fiber/issues/3104
[Bug]: When mounting a subapp with mount, the static route is inaccessible. #3442
https://github.com/gofiber/fiber/issues/3442
2025-05-16 08:29:39 +02:00
René
fccff19606 fix golangci errors
Error: G104: Errors unhandled. (gosec)
2025-05-12 11:20:39 +02:00
René
f7a10c9a61 fix golangci errors
Error: G104: Errors unhandled. (gosec)
Error: G104: Errors unhandled. (gosec)
Error: G104: Errors unhandled. (gosec)
2025-05-12 11:02:15 +02:00
Isaac Andrade
ac8b1c95c3
📒 docs: Update usage of ctx.Redirect() (#3417)
* 📚 Improve docs for Ctx.Redirect

Closes #3405

* Update ctx.md

* Only run golangci-lint for go related changes

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2025-04-26 19:16:09 +02:00
René
cf5041b9d7 repair readme benchmarks 2025-04-13 18:37:24 +02:00
René
8add1ad270 update benchmarks.md 2025-04-09 15:38:16 +02:00
Juan Calderon-Perez
42d921d353
🧹 chore: Backport ctx.String() from v3 (#3294)
* Backport ctx.String() to v2

* Fix lint issues
2025-01-27 15:00:51 +01:00
René
8b9db059d7 Doc BodyParser: Add multipart form info about the file data 2025-01-23 08:32:43 +01:00
René
3729281a1e Doc BodyParser: Add multipart form info about the file data 2025-01-22 08:35:17 +01:00
RW
e04f815c43
prepare release v2.52.6 v2.52.6 2024-12-31 18:04:19 +01:00
RW
7eb9d25548
Support Square Bracket Notation in Multipart Form data (#3268)
* Feature Request: Support Square Bracket Notation in Multipart Form Data #3224

* Feature Request: Support Square Bracket Notation in Multipart Form Data #3224
2024-12-31 16:56:18 +01:00
Juan Calderon-Perez
47be68142a
🧹 chore: Add parallel benchmark for Next() (#3259)
* Add parallel benchmark for Next()

* Create RequestCtx outside loop
2024-12-21 10:51:16 +01:00
Juan Calderon-Perez
c9ff17d796
🧹 chore: Update dependencies (#3254)
* Update v2 dependencies

* Try fasthttp v1.55.0

* Try fasthttp v1.54.0

* Try fasthttp v1.53.0

* Try fasthttp v1.52.0

* Try fasthttp v1.51.0

* Add Makefile

* Bump msgp to v1.2.5
2024-12-18 15:40:07 +01:00
nickajacks1
56ff2de858
🐛 fix: Respect Immutable config for Body() (#3246)
* 🐛 fix: respect Immutable config for Body()

* ci: add go 1.22 and 1.23 to test matrix
2024-12-13 08:28:36 +01:00
Aaron Zingerle
8c84b0fd8a
🩹 fix: Middleware/CORS Remove Scheme Restriction (#3168)
🩹 Fix: Middleware/CORS Remove Scheme Restriction (gofiber#3160)

Co-authored-by: Aaron Zingerle <aaron.zingerle@vipaso.io>
2024-10-14 15:04:25 +02:00
Juan Calderon-Perez
6e7411403a
v2: Add CODEOWNERS file (#3124)
Add CODEOWNERS file
2024-09-06 21:18:20 +03:00
Vaibhav Gupta
cb06bc5f4c
🩹 Fix: handle un-matched open brackets in the query params (#3121)
* Add logic for counting open brackets

* Add UTs

* update increment/decrement syntax with ++/--

* Update UT to remove duplicate
2024-09-06 08:02:02 +02:00
René
bfcf91dab8 fix template markdown 2024-08-30 17:22:07 +02:00
Giovanni Rivera
ca935c3f8f
📚 Doc: Add detailed documentation for the templates guide (#3113)
* Organize and reword templates guide

* Add full example to templates guide

* Add advanced templating section to template guide

* Add template repo link and fix typo in Templates guide

- Add link to https://github.com/gofiber/template in Templates Guide
- Fix typo: missing period in info block about ctx.Render()

* Update docs/guide/templates.md

* Update docs/guide/templates.md

---------

Co-authored-by: RW <rene@gofiber.io>
2024-08-28 09:01:02 +02:00
Juan Calderon-Perez
87bb93ecf0
v2: Update benchmark-action to v1.20.3 (#3084)
Update benchmark gh action
2024-07-23 08:25:25 +02:00
Juan Calderon-Perez
1c526892e7
🐛 bug: Use Content-Length for bytesReceived and bytesSent tags in Logger Middleware in v2 (#3067)
Use Content-Length for bytesSent and bytesReceived in Logger
2024-07-18 13:41:39 +02:00
René
6968d51d0d add release.yml config v2.52.5 2024-06-30 22:11:08 +02:00
Jason McNeil
66a881441b
fix(middleware/session): mutex for thread safety (#3050)
* chore: Remove extra release and acquire ctx calls in session_test.go

* feat: Remove unnecessary session mutex lock in decodeSessionData function

* chore: Refactor session benchmark tests

* fix(middleware/session): mutex for thread safety

* feat: Add session mutex lock for thread safety

* chore: Refactor releaseSession mutex
2024-06-30 21:16:23 +02:00
Paulus Titto
6fa0e7c9fc
Update README_id.md (#3045)
Update some word en to in
2024-06-27 12:19:35 +02:00
Jason McNeil
c7bfb31bf9
test(middleware/session): Remove extra release and aquire ctx calls in session_test.go (#3043) 2024-06-26 15:46:28 +02:00
René
abf8f324d6 prepare version v2.52.5 2024-06-26 11:05:26 +02:00
Jason McNeil
7926e5bf4d
Merge pull request from GHSA-98j2-3j3p-fw2v
* fix: token injection vulnerability GHSA-98j2-3j3p-fw2v

- Ensure session IDs are securely generated server-side.
- Add validation to prevent user-supplied session IDs.
- Update tests to verify correct session token use.

This update addresses the critical session middleware vulnerability identified in versions 2 and above of GoFiber.

* test(middleware/csrf): Save session after generating new session ID

This commit saves the session after generating a new session ID to ensure that the updated session ID is persisted. This change is necessary to address a critical session middleware vulnerability identified in versions 2 and above of GoFiber.

* chore: Save session ID in context for middleware chain

The code changes add functionality to save the newly generated session ID in the context, allowing it to be accessible to subsequent middlewares in the chain. This improvement ensures that the session ID is available for use throughout the middleware stack.

* test: Fix session freshness check in session_test

The code changes in `session_test.go` fix the session freshness check by updating the assertions for `sess.Fresh()` and `sess.ID()`. The previous assertions were incorrect and have been corrected to ensure the session ID remains the same and the session is not fresh.

* refactor(session.go): general clean-up

* chore: Revert session freshness behavior

The code changes in `session_test.go` fix the session freshness check by updating the assertions for `sess.Fresh()` and `sess.ID()`. The previous assertions were incorrect and have been corrected to ensure the session ID remains the same and the session is not fresh.
2024-06-26 09:17:41 +02:00
Feng
4262f5b591
fix: monitor middleware reporting of CPU usage (#2984)
monitPIDCPU should be transient, not persistent.

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-06-24 16:32:04 +02:00
Jason McNeil
232c0fac0d
docs: Improve ctx.Locals method documentation (#3033) 2024-06-12 16:23:15 +02:00
Jason McNeil
6c9510df5a
docs: Improve ctx.Locals method description and example (#3030) 2024-06-11 08:53:43 +02:00
RW
6c3eb80aa9
Update csrf.md
fix broken csrf link
2024-04-19 12:35:20 +02:00
René
ef561694ba fix md syntax 2024-04-19 12:28:23 +02:00
RW
ab382cdd4a
Update release-drafter.yml 2024-04-07 20:34:00 +02:00
René
d0c8f8c82e Add a new benchmark that tests the ctx acquire and release flow
this will be used later to make differences with version 3 directly visible
2024-04-03 23:16:51 +02:00
René
f098e2bd9c Add a new benchmark that tests the ctx acquire and release flow
this will be used later to make differences with version 3 directly visible
2024-04-03 22:44:56 +02:00
René
96330a6c05 Add a new benchmark that tests the simple flow
this will be used later to make differences with version 3 directly visible
2024-04-03 16:17:40 +02:00
RW
fd811cf84a
prepare release v2.52.4 v2.52.4 2024-03-26 22:40:09 +01:00
Jason McNeil
a6f4c133bc
fix(middleware/cors): Vary header handling non-cors OPTIONS requests (#2939)
* fix(middleware/cors): Vary header handling non-cors OPTIONS requests

* chore(middleware/cors): Add Vary header for non-CORS OPTIONS requests comment
2024-03-26 22:22:42 +01:00
Jason McNeil
e574c0db52
fix(middleware/cors): CORS handling (#2937)
* fix(middleware/cors): CORS handling

* fix(middleware/cors): Vary header handling

* test(middleware/cors): Ensure Vary Headers checked
2024-03-26 21:57:42 +01:00
RW
43d5091967
Prepare release v2.52.3 v2.52.3 2024-03-25 20:26:29 +01:00