Commit Graph

3269 Commits (cbfcac2c0a911bb1d47deadea71d7667115a0bfa)

Author SHA1 Message Date
M. Efe Çetin cbfcac2c0a
🐛 bug: remove prefork support from custom listeners (#2060)
* 🐛 bug: remove prefork support from custom listeners

* Update listen_test.go
2022-08-30 13:01:24 +02:00
M. Efe Çetin e72ea32dd2
🐛 bug: fix regex constraints (#2059) 2022-08-30 08:40:58 +02:00
Amir Hossein 349772d69a
fix unhandled errors and remove unused parameter (#2061)
* fix unhandled errors

* fix unhandled error in cache package test

* omit variable type

* omit variable type

* rename variable because collide with the imported package name

* handle file error on closing

* fix unhandled in common_linux.go

* fix unhandled errors in helpers_test.go

* fix unhandled errors in listen_test.go

* remove unused parameter in emptyHandler method
2022-08-30 08:38:16 +02:00
RW 0ebc9113d5
Update README.md 2022-08-30 08:36:17 +02:00
Emre Savcı d9257c2c1d
🚀 [Feature]: add envvar expose middleware (#2054)
* add envvar expose middleware

* fix readme remove redundant word

* change hard coded json marshal to app config marshaller

* update readme

* update all lang readme

* change t.setenv to os.setenv as backward compability reason

* change io.readall to ioutil.readall

* Update envvar.go

* remove get method that only used in test

* remove unused method from envvar struct

* remove path variable from config, update readme, add new test case

Co-authored-by: RW <rene@gofiber.io>
2022-08-30 08:30:13 +02:00
Amir Hossein 0734c9d3fc
🔍 fix unhandled errors in helpers_test.go (#2058)
* fix unhandled errors

* fix unhandled error in cache package test

* omit variable type

* omit variable type

* rename variable because collide with the imported package name

* handle file error on closing

* fix unhandled in common_linux.go

* fix unhandled errors in helpers_test.go
2022-08-29 14:12:12 +02:00
Jason McNeil 6272d759eb
🚀 [Feature]: middleware/csrf custom extractor (#2052)
* feat(middleware/csrf): allow custom Extractor

* test: update Test_CSRF_From_Custom

* docs: add comma

* docs: update KeyLookup docs
2022-08-28 18:57:47 +02:00
Amir Hossein 506f0b21c5
fix unhandled error in `common_linux.go` (#2056)
* fix unhandled errors

* fix unhandled error in cache package test

* omit variable type

* omit variable type

* rename variable because collide with the imported package name

* handle file error on closing

* fix unhandled in common_linux.go
2022-08-28 18:45:56 +02:00
Amir Hossein b86f79eca4
handle file error on closing (#2050)
* fix unhandled errors

* fix unhandled error in cache package test

* omit variable type

* omit variable type

* rename variable because collide with the imported package name

* handle file error on closing
2022-08-26 15:46:45 +02:00
M. Efe Çetin aef7ea53b3
🐛 bug: fix route constraints problems (#2033)
* 🐛 bug: fix route constraints problems

* escape support for data

* exactLen -> len
2022-08-26 14:16:06 +02:00
Amir Hossein ffb2d4cb1a
fix unhandled error in cache package tests (#2049)
* fix unhandled errors

* fix unhandled error in cache package test

* omit variable type

* omit variable type

* rename variable because collide with the imported package name
2022-08-26 14:10:46 +02:00
Amir Hossein 01ea139da4
🔎 fix unhandled errors (#2048)
fix unhandled errors
2022-08-26 12:02:46 +02:00
Muhammed Efe Çetin 235ff1649c
📝 docs: convert gitter, telegram links to discord 2022-08-25 19:27:15 +03:00
GalvinGao b970457109
docs: change support claim up to go 1.19 (#2043) 2022-08-24 14:09:33 +02:00
micziz 6c6661a32d
📝 docs: Update Italian readme (#2042)
Update README_it.md
2022-08-24 13:50:45 +03:00
M. Efe Çetin 4d28b1e200
🐛 bug: make tlsHandler public to use it with Listener (#2034)
* 🐛 bug: ClientHelloInfo support for app.Listener

* 🐛 bug: ClientHelloInfo support for app.Listener

* fix

* make tlshandler public

* update

* 🐛 bug: make tlsHandler public to use it with Listener #2034

Co-authored-by: wernerr <rene@gofiber.io>
2022-08-24 09:47:37 +02:00
Jinquan Wang 9c98a1fb37
🐛 bug: Case sensitivity for parameters in GetRouteURL (#2010)
* 🐛 bug: Case sensitivity for parameters in GetRouteURL

* ✏️ perf: error spell
2022-08-24 09:16:19 +02:00
George Bolo 8540d0afdc
fixes #2016 - make IP() and IPs() more reliable (#2020)
* fixes #2016 - make IP() and IPs() more reliable

* improve the performance of IP validation functionality

* refactor IP validation and make it a configuration option
2022-08-23 08:32:21 +02:00
wernerr 917263c9e4 Improve pull request template 2022-08-22 08:47:55 +02:00
Trim21 80a6fdc215
client: fix `Agent` use after free (#2037)
* fix

* fix

* fix
2022-08-22 08:01:40 +02:00
Jinquan Wang 32d311cd59
🐛 monitor middleware - fix ignore custom settings (#2024)
* 🐛 fix: ignore custom settings

* 🐛 fix: ignore custom settings

*  chore: add tests for config default
2022-08-19 15:09:16 +02:00
Tushar Dahiya 1fec8757c4
Update README.md 📝 (#2023)
Update README.md

Grammatical Error
2022-08-19 08:20:33 +02:00
Thomas 2edcf95f57
update: tls.ClientHelloInfo in Ctx (#2011)
* Update go.mod

* wip

* wip

* wip

* wip

* wip

* Move tlsHandler from Config to App

* Use NewError instead of panic

* Add a test with ServerName

* Add some tests on ClientHelloInfo

* fix missing import

* remove unnecessary ctx field.

Co-authored-by: RW <rene@gofiber.io>
Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
2022-08-19 08:19:22 +02:00
RW f031e08d18
prepare release 2.37.0-rc.1 2022-08-18 16:29:52 +02:00
dependabot[bot] 648e662cc5
Bump github.com/valyala/fasthttp from 1.38.0 to 1.39.0 (#2017)
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.38.0 to 1.39.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.38.0...v1.39.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 13:26:39 +02:00
M. Efe Çetin aa4d2c3f65
📝 docs: make Hooks public (#2015) 2022-08-16 08:13:38 +02:00
M. Efe Çetin 2517944c80
feature: route constraints (#1998)
* Segment parameters constraints and determining it's type

* add parsing for constraints.

* fix tests

* add tests, benchs & some fixes.

* fix regex & datetime tests.

* clean up constraint parser, multiple constraint support.

* update

* regex customization.

* constants, remove variadic methods.

* add some benchs, refactor constraint check funtion.

* more readable conditions

* fix tests

* precompile regex

* precompile regex when parsing the route

* update comments
Co-authored-by: wernerr <rene@gofiber.io>

Co-authored-by: Mohab Abd El-Dayem <mohab.m.mohamed@gmail.com>
Co-authored-by: RW <rene@gofiber.io>
2022-08-16 08:05:50 +02:00
M. Efe Çetin 95abdacba0
feature: add XML to context. (#2003)
*  feature: add XML to context.

* Update app.go
2022-08-16 08:05:35 +02:00
M. Efe Çetin 6669ec4486
📝 docs: gofmt & add missing copyright texts (#2013) 2022-08-15 20:25:26 +02:00
Jinquan Wang e8a2ba363c
🐛 bug: fix proxy overwrote the wrong scheme (#2004)
* 🐛 bug: fix proxy overwrote the wrong scheme

*  fix: fix io not exist in go1.14
2022-08-09 16:14:41 +02:00
Trim21 e5eb8d3c98
fix infinitely `app.Test` (#1997)
* diff

* better code

* err message

* code style

* up

* fix type error

* use time.Timer
2022-08-08 08:18:57 +02:00
Muhammed Efe Çetin 9c6c7da4e4
🐛 bug: add forgotten overriding for white color 2022-08-04 20:43:07 +03:00
Muhammed Efe Çetin 5bc1871205
📝 ci: fix CoC links on issue templates 2022-08-04 20:41:17 +03:00
M. Efe Çetin 9761f4e797
🐛 bug: fix gopsutil when compiling for bsd. (#1995) 2022-08-03 16:03:17 +02:00
RW 97ba1d16d5
Update benchmark.yml 2022-08-03 14:35:47 +02:00
wernerr 3552136805 reduce duplicated tests run actions 2022-08-03 13:12:47 +02:00
wernerr 96b4db17c6 reduce duplicated tests run actions 2022-08-03 13:03:06 +02:00
M. Efe Çetin fb780a01d0
ci: add go 1.19 to tests (#1994)
* ci: add go 1.19 to tests

* change test runner versions
skip it for 1.15, 1.17, 1.18

Co-authored-by: wernerr <rene@gofiber.io>
2022-08-03 11:07:21 +02:00
Maxi_Mega 4f7816774b
🎨 Add black colors to default overriding function (#1993)
* Fix padding around app name in startup message when it contains non-ascii characters

* fix conflict, allow ending space only for odd length strings

* move startup message tests to listen_test.go

* add black color to defaultColors overriding function, fix (again) padding in startupMessage
2022-08-02 14:23:14 +02:00
wernerr 1cca495c7b try to stabilize Test_Test_Timeout 2022-08-02 08:31:22 +02:00
RW 7108b444e3
prepare release v2.36.0 2022-08-02 08:11:35 +02:00
RW c59370f47a
prepare release v2.36.0 2022-08-02 08:09:08 +02:00
Maxi_Mega e49880c5d6
🎨 Fix padding around app name in startup message when containing non-ascii characters (#1987)
* Fix padding around app name in startup message when it contains non-ascii characters

* fix conflict, allow ending space only for odd length strings

* move startup message tests to listen_test.go
2022-08-01 13:16:49 +03:00
とーふとふ 43133bec43
🔥 Add OnPrefork Hooks so you can get the PID of the child process. (#1974) 2022-08-01 08:25:56 +02:00
M. Efe Çetin 4103f9463d
feature: customizable colors (#1977)
*  feature: customizable colors

*  feature: customizable colors

*  feature: customizable colors
2022-08-01 08:24:37 +02:00
RW ff1e0109a3
Closes #1931 "🤗 How to get path param before a custom verb?" (#1983)
* Add possibility for parameters before custom verb
FIX for "🤗 How to get path param before a custom verb? #1931"

* try to stabilize the tests
2022-07-27 08:37:03 +02:00
Raden Mohamad Rishwan ad89ba4e1c
fix README_it.md (#1980) 2022-07-21 17:46:01 +03:00
RW 2a2337d83e
prepare release v2.35.0 2022-07-06 12:51:08 +02:00
olongfen bad7001570
binds the param string to a struct use params tag (#1968)
* add: params parse

* fix: binds the param string to a struct use params tag
2022-07-06 12:42:54 +02:00
olongfen dfa24a0958
add: params parse (#1964) 2022-07-05 13:45:11 +02:00