3597 Commits

Author SHA1 Message Date
RW
28d9abb71b
Fix #2383, accepts mimeType (#2386)
* Fix #2383, accepts mimeType

* Fix #2383, accepts mimeType

* Fix #2383, accepts mimeType
2023-03-27 15:55:41 +02:00
leonklingele
c6e86ac906
github/workflows: also run tests with Go 1.19.x (#2384) 2023-03-25 17:47:38 +01:00
leonklingele
2f591c991d
Merge pull request #2381 from gofiber/dependabot/go_modules/github.com/mattn/go-isatty-0.0.18
Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18
2023-03-25 15:37:10 +01:00
René Werner
c9121189a9 Fix docu 2023-03-24 18:58:15 +01:00
René Werner
cc5c793d83 Add documentation for ctx.QueryFloat and ctx.QueryBool 2023-03-24 18:54:09 +01:00
RW
69884117c2
prepare release v2.43.0 v2.43.0 2023-03-24 18:23:38 +01:00
dependabot[bot]
152d59aeb7
Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.17 to 0.0.18.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.17...v0.0.18)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 13:30:56 +00:00
Erkan Durmuş
547db83cdd
Get mime fallback (#2340)
* added fallback to go's mime detection

* added test for getting mime

* added err check

* added err check

* removing import alias for builtin mime and aserting error for adding mime type.

* removing import alias for builtin mime and aserting error for adding mime type.

* added fallback to go's mime detection

* added test for getting mime

* added err check

* added err check

* removing import alias for builtin mime and aserting error for adding mime type.

* removing import alias for builtin mime and aserting error for adding mime type.

---------

Co-authored-by: René Werner <rene.werner@verivox.com>
2023-03-24 14:29:42 +01:00
René Werner
1f52799686 Refresh middleware documentation 2023-03-24 13:23:52 +01:00
leonklingele
f0582a59ef
github: use proper discord invitation link (#2382) 2023-03-23 19:16:52 +03:00
Kyle Manning
32c3961726
corrected coding typos in MountPath docs section (#2379)
* corrected coding typos in MountPath docs section

* Update app.md

---------

Co-authored-by: Kyle Manning <kyle@manning.jp>
Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
2023-03-22 09:44:36 +03:00
dependabot[bot]
7536ce8b1a
Bump actions/setup-go from 3 to 4 (#2376)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 08:27:53 +01:00
M. Efe Çetin
9064eb6469
🧹 chore: drop go 1.16 support & update dependencies (#2374)
* 🧹 chore: drop go 1.16 support

* downgrade uniseg

* fix tests

* fix tests

* fix tests
2023-03-20 08:22:31 +01:00
Rorke76753
56839b433e
🚀 [Feature]: middleware/requestid: don't call "Generator" func on existing request ID header (#2371)
call uuid generator only if rid is empty
2023-03-15 09:45:42 +01:00
Benjamin Grosse
d7b36cde54
🐛 requestid.Config.ContextKey is interface{} (#2369)
requestid.Config.ContextKey is interface{}

Consistent with c.Locals(key inteface{}, ...).
Fixes #2356
2023-03-14 19:37:10 +01:00
UtopiaGitHub
678728de6d
🐛 [Bug-Fix]: add lock to avoid data race #2360 (#2368)
Update memory.go

The fix is to protect the access to s.db and save the result to a local variable.
2023-03-14 11:41:48 +01:00
RW
01d39dbb81
Update benchmark.yml 2023-03-14 11:41:39 +01:00
RW
0dee42a57c
Update ctx.md ip documentation 2023-03-14 11:24:11 +01:00
Tumushimire Yves
634f163e3f
🚀 [Feature]: SessionOnly when cookie.Expires is 0 (#2152)
* feature: session only for zero expire cookie #2145

* refactor condition to set MaxAge and Expire on cookie

* move checking zero maxage and expire in session middleware

Signed-off-by: Yves Tumushimire <yvestumushimire@gmail.com>

* feature: session only for zero expire cookie #2145

* refactor condition to set MaxAge and Expire on cookie

* move checking zero maxage and expire in session middleware

Signed-off-by: Yves Tumushimire <yvestumushimire@gmail.com>

* CR changes

* some updates

---------

Signed-off-by: Yves Tumushimire <yvestumushimire@gmail.com>
Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
Co-authored-by: René Werner <rene.werner@verivox.com>
2023-03-12 19:14:22 +01:00
René Werner
01fcdedcef improve labeler config 2023-03-12 09:31:49 +01:00
RW
9e440635f0
enable benchmark summary for pull requests/ fix auto labeler (#2365)
* enable benchmark summary for pull requests

* enable benchmark summary for pull requests

* correct auto labeler
2023-03-10 10:30:52 +01:00
Hong Seungwoo
c1c119337f
Fix typo in docs (#2357)
Co-authored-by: Seungwoo Hong <qksn1541@hits.ai>
2023-03-08 17:59:36 +03:00
Muhammed Efe Çetin
15e9235383
📝 docs: remove README.mds from middleware dirs 2023-03-06 16:42:35 +03:00
lublak
2e7e879d6f
feature: allow preloaded certs with prefork (#2351)
* allow preloaded certs with prefork

* add to documentation

* add comments for ListenMutualTLSWithCertificate

* add test for WithCertificate

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

---------

Co-authored-by: RW <rene@gofiber.io>
2023-03-06 12:03:41 +01:00
RW
e2da8540be
Update auto-labeler.yml
downgrade autolabeler
2023-03-06 07:55:19 +01:00
Caio Augusto
44fd1976e7
fix(docs): add missing comma (#2353)
fix: add missing comma

nothing too much but it's a fix :p
2023-03-05 23:26:06 +03:00
skyenought
a70b8612b1
🐛 [Bug-Fix] Fix all inaccessible links in docs (#2349)
Fix all inaccessible links in docs
2023-02-28 18:14:41 +01:00
René Werner
19aa55da38 improve workflows
- exclude markdown changes
- don´t push the benchmark results in a pull request
2023-02-28 18:10:05 +01:00
René Werner
7017001921 Merge remote-tracking branch 'origin/master' 2023-02-28 17:47:58 +01:00
dependabot[bot]
0e87b260a1
Bump fuxingloh/multi-labeler from 1 to 2 (#2348)
Bumps [fuxingloh/multi-labeler](https://github.com/fuxingloh/multi-labeler) from 1 to 2.
- [Release notes](https://github.com/fuxingloh/multi-labeler/releases)
- [Commits](https://github.com/fuxingloh/multi-labeler/compare/v1...v2)

---
updated-dependencies:
- dependency-name: fuxingloh/multi-labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 14:21:16 +01:00
RW
d124757c78
Update pull_request_template.md 2023-02-25 11:47:42 +01:00
René Werner
f6b5ed6d26 update proxy docs 2023-02-25 10:57:12 +01:00
René Werner
3992cab83b update proxy docs 2023-02-25 10:56:10 +01:00
René Werner
35e6825614 update proxy docs 2023-02-25 10:55:27 +01:00
René Werner
bfa8b6a222 Merge remote-tracking branch 'origin/master' 2023-02-25 10:44:08 +01:00
M. Efe Çetin
a1eb0e69a6
📝 docs: fix example on envvar middleware 2023-02-25 12:43:57 +03:00
René Werner
d034115dec optimize workflows and test docs sync 2023-02-25 10:43:53 +01:00
M. Efe Çetin
b3643198f8
📝 docs: automated synchronization with gofiber/docs (#2344)
Automated Synchronization with gofiber/docs repo
2023-02-25 10:29:07 +01:00
René Werner
af69fa5a56 use another labeler 2023-02-25 10:01:26 +01:00
Juan Calderon-Perez
dc038d8233
Feature: Add DoRedirects, DoTimeout and DoDeadline to Proxy middleware (#2332)
* Add support for DoRedirects

Signed-off-by: Juan Calderon-Perez <jgcalderonperez@protonmail.com>

* Fix linter issues

Signed-off-by: Juan Calderon-Perez <jgcalderonperez@protonmail.com>

* Add example to README

* Add support for DoDeadline and DoTimeout. Expand unit-tests

* Fix linter errors

Signed-off-by: Juan Calderon-Perez <jgcalderonperez@protonmail.com>

* Add examples for Proxy Middleware

---------

Signed-off-by: Juan Calderon-Perez <jgcalderonperez@protonmail.com>
2023-02-24 15:09:00 +01:00
Ryan Devenney
b634ba0a58
fix cors * behavior #2338 (#2339)
🐛- fix cors * behavior #2338
2023-02-20 22:36:34 +01:00
Michail Safronov
497eb02b48
Basic auth alloc (#2333)
* basic_auth: extend benchmark for uppercase Basic

* basic_auth: check space after basic (and avoid alloc if Basic)

* fixup! basic_auth: check space after basic (and avoid alloc if Basic)
2023-02-13 22:48:55 +01:00
Iliya
c3b151a1fe
🔥 Feature: add queryBool parser (#2329)
* 🔥 Feature: add queryBool parser

* 🩹 pass linter
2023-02-09 22:33:09 +08:00
Iliya
54439a5bde
🔥 Feature: add queryFloat parser (#2328) 2023-02-09 13:44:13 +08:00
ACHMAD IRIANTO EKA PUTRA
61a3336119
add forward from domain (#2323)
* add forward from domain

* add balancer forward

* add unittest and readme

* add short description new feature

* add short description on signature

* golangci-lint fix

---------

Co-authored-by: René Werner <rene@gofiber.io>
v2.42.0
2023-02-03 14:45:27 +01:00
René Werner
028d821bea prepare release 2023-02-03 13:59:47 +01:00
RW
675f5181ce
prepare release for v2.42.0 2023-02-03 13:01:33 +01:00
Алексей Колесников
21cd45b750
PR: add url for favicon middleware, for correct handling different of… (#2231)
* PR: add url for favicon middleware, for correct handling different of ico formats

* pr:  efectn > URL would be better naming i think

* pr: add test case

* apply reviews

* remove json annotinos, since they are unnecessary

* readme fixes

* linting fixes

---------

Co-authored-by: koalan <kolesnikov.khv@gmail.com>
Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
2023-02-03 10:14:24 +01:00
M. Efe Çetin
2820aef585
🧹 chore: add go 1.20 to ci and readmes (#2322)
*  chore: add go 1.20 to ci and readmes

* 🧹 chore: add go 1.20 to ci and readmes

* update linter

* fix linter

* fix benchmarks

* fix benchmarks

* fix benchmarks
2023-02-02 23:01:37 +03:00
leonklingele
ac4ce21d9c
🐛 Bug: Fix issues introduced in linting PR (#2319)
* internal: revert linting changes

Changes to the internal package should not have been made in 167a8b5e9421e0ab51fbf44c5621632f4a1a90c5.

* middleware/monitor: revert changes to exported field "ChartJSURL"

This is a breaking change introduced in 167a8b5e9421e0ab51fbf44c5621632f4a1a90c5.

* middleware/monitor: fix error checking

Fix the errorenous error checking introduced in 167a8b5e9421e0ab51fbf44c5621632f4a1a90c5.

* 🐛 Bug: Fix issues introduced in linting PR #2319

* 🐛 Bug: Fix issues introduced in linting PR #2319

* Bug: Fix issues introduced in linting PR #2319

---------

Co-authored-by: René Werner <rene@gofiber.io>
2023-02-02 15:57:40 +01:00