1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00
Commit Graph

1613 Commits

Author SHA1 Message Date
toimtoimtoim
28797c761d Timeout mw: fix datarace in tests when we are getting data from buffer (in test) and writing to logger at the same time. 2022-05-21 22:26:56 +03:00
toimtoimtoim
2e02ce3dd8 Timeout mw: fix datarace in tests when we are getting data from buffer. Run each test in their own server so multiple tests cases will not cause datarace getting data out of logger buffer. 2022-05-21 20:12:32 +03:00
Roland Lammel
6df1c355c2
Merge pull request #2166 from aldas/ci_with_go1_18
Update Github CI flow to use Go 1.18, bump actions versions
2022-05-02 10:26:37 +02:00
toimtoimtoim
a987b6577c
Update Github CI flow to use Go 1.18, bump actions versions 2022-04-29 22:34:24 +03:00
gemaizi
572466d928 Fix body_limit middleware unit test 2022-04-05 20:34:49 +03:00
Roland Lammel
63c62bcbe5 Tidy up comments for value binders 2022-03-17 14:14:42 +02:00
toimtoimtoim
59d2eaa4ac Add new value binding methods (UnixTimeMilli,TextUnmarshaler,JSONUnmarshaler) to ValueBinder 2022-03-17 14:14:42 +02:00
toimtoimtoim
ec92fedf21 Update version and changelog for 4.7.2 2022-03-16 09:34:26 +02:00
toimtoimtoim
1919cf4491 Timeout middleware write race 2022-03-16 08:09:29 +02:00
Martti T
01d7d01bbc
Fix CSRF middleware not being able to extract token from multipart/form-data form (#2136, fixes #2135) 2022-03-16 00:43:20 +01:00
Becir Basic
5c38c3b770
Recover middleware should not log panic for aborted handler (#2134, fixes #2133)
Co-authored-by: Becir Basic <bb@neotel.at>
2022-03-16 00:29:42 +01:00
Gabriel Nelle
05df10c62f fix nil pointer exception when calling Start again after address binding error 2022-03-15 21:38:57 +02:00
toimtoimtoim
b445958c3c Update version and changelog for 4.7.1 2022-03-13 18:43:24 +02:00
eric
54efc3850d
remove some unused code (#2116)
* remove unused code
2022-03-13 15:31:39 +02:00
Martti T
3f5b733425
Fix e.Static, .File(), c.Attachment() being picky with paths starting with ./, ../ and / after 4.7.0 introduced echo.Filesystem support (Go1.16+) (#2123)
* Fix `e.Static`, `.File()`, `c.Attachment()` being picky with paths starting with `./`, `../` and `/` after 4.7.0 introduced echo.Filesystem support (Go1.16+)
2022-03-13 15:05:12 +02:00
Roland Lammel
5ebed440ae Update version to v4.7.0 2022-03-02 23:16:19 +01:00
Roland Lammel
da85d23d68 Revert "Update direct golang deps"
This reverts commit d66712b252.
2022-03-02 23:11:46 +01:00
Roland Lammel
d66712b252 Update direct golang deps 2022-03-02 22:59:19 +01:00
Wagner Souza
7e719b46e2
Add cache-control and connection headers (#2103)
Co-authored-by: Wagner Souza <wagner.souza@accenture.com>
2022-03-02 00:11:28 +01:00
Yusuf Eyisan
124825ee62
Bugfix/1834 Fix X-Real-IP bug (#2007)
* Fix incorrect return ip value for RealIpHeader
* Improve test file to compare correct real IPs to each other and have better comments
* Refactor ip extractor tests to be more readable (longer but readable)

Co-authored-by: toimtoimtoim <desinformatsioon@gmail.com>
2022-03-01 08:56:46 +01:00
eric
27b404bbc5
remove unused notFoundHandler in echo struct (#2102)
* remove unused notFoundHandler in echo
2022-02-23 13:28:20 +02:00
eric
6cb3b7c046
remove redundant 0 in make chan (#2101)
* remove 0 in make(chan,0) to fix go-staticcheck problem
2022-02-23 09:22:20 +02:00
Martti T
4a1ccdfdc5
JWT, KeyAuth, CSRF multivalue extractors (#2060)
* CSRF, JWT, KeyAuth middleware support for multivalue value extractors
* Add flag to JWT and KeyAuth middleware to allow continuing execution `next(c)` when error handler decides to swallow the error (returns nil).
2022-01-24 22:03:45 +02:00
Eng Zer Jun
9e9924d763
build: upgrade go directive in go.mod to 1.17 (#2049)
This commit enables support for module graph pruning and lazy module
loading for projects that are at Go 1.17 or higher.

Reference: https://go.dev/ref/mod#go-mod-file-go
Reference: https://go.dev/ref/mod#graph-pruning
Reference: https://go.dev/ref/mod#lazy-loading
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-01-24 17:09:49 +01:00
toimtoimtoim
feaa6ede6a improve comments 2022-01-24 15:55:16 +02:00
toimtoimtoim
db5bace1c4 fix Windows 2022-01-24 15:55:16 +02:00
toimtoimtoim
b830c4ef95 Improve filesystem support. 2022-01-24 15:55:16 +02:00
toimtoimtoim
af2a49dbbc Fix fs.Sub problems on Windows 2022-01-24 15:55:16 +02:00
toimtoimtoim
1b1a68fd4f Improve filesystem support (Go 1.16+). Add field echo.Filesystem, methods: echo.FileFS, echo.StaticFS, group.FileFS, group.StaticFS. Following methods will use echo.Filesystem to server files: echo.File, echo.Static, group.File, group.Static, Context.File 2022-01-24 15:55:16 +02:00
ant1k9
7c41b93f0c
Add LogErrorFunc to recover middleware (#2072)
LogErrorFunc provides more general interface to handle errors in the recover middleware.
2022-01-24 11:23:41 +01:00
sivchari
f3865f9aa5
Minor syntax fixes (#1994) 2022-01-24 10:33:13 +01:00
Clement JACOB
eb371a9e64
Adding support for HEAD method query params binding (#2027)
* Adding support for HEAD method query params binding.
* Update comment for added HEAD method for bind

Co-authored-by: Roland Lammel <roland@lammel.net>
2022-01-24 10:28:48 +01:00
mikestefanello
db9c708124 Add pagoda to the README. 2022-01-23 22:37:13 +02:00
Patrick Willner
94638be9f8 Add Retry-After header constant 2022-01-23 22:21:50 +02:00
darkweak
8d2c45eeff Add Souin middleware into third-party-middlewares 2022-01-13 10:21:46 +02:00
toimtoimtoim
aada6f95d7 Fix Echo version number which was not incremented with Release 4.6.2. Now bumped to 4.6.3 2022-01-10 21:51:37 +02:00
Martti T
296c31358a
Add list of middlewares to readme including 3rd party projects (#2065) 2022-01-09 01:41:40 +01:00
toimtoimtoim
6f6befe555 improve docs 2022-01-03 21:04:17 +02:00
toimtoimtoim
5b26a5257b Allow header support in Router, MethodNotFoundHandler (405) and CORS middleware 2022-01-03 21:04:17 +02:00
Rashad Ansari
4fffee2ec8 Add custom jwt extractor to jwt config 2021-12-20 21:41:59 +02:00
toimtoimtoim
6b5e62b27e fix: route containing escaped colon should be matchable but is not matched to request path (fixes #2046) 2021-12-17 14:49:17 +02:00
Nao Yonashiro
7bde9aea06
Fixed a problem that returned wrong content-encoding when the gzip compressed content was empty (#1921)
Fixed a problem that returned wrong content-encoding when the gzip compressed content was empty
2021-12-15 10:15:13 +02:00
Guilherme Cardoso
c32fafad68 Add support for configurable target header for the request_id middleware 2021-12-07 21:34:16 +02:00
David Desmarais-Michaud
b437ee3879
stream decompression instead of buffering (#2018)
* stream decompression instead of buffering
* simple body replace with gzip reader with deferred close
* defer resource closes
* simply gzip.Reader pool
2021-12-03 11:03:42 +01:00
Luka Jajanidze
902c553552 Added comments for RateLimiterMemoryStoreConfig and RateLimiterMemoryStore 2021-11-21 18:22:14 +02:00
Luka Jajanidze
3f099663f1 removed unnecessary comments 2021-11-21 18:22:14 +02:00
Luka Jajanidze
bd29ef9e46 added references to Limiter docs for 0-1 behaviour 2021-11-21 18:22:14 +02:00
nephtyws
8b4cce5021 Sort import order on example in README.md 2021-11-14 17:42:57 +02:00
toimtoimtoim
0c4ad8646a update dependencies
use 1.14 for choosing updated deps. Using current tip (1.17) will cause tests fail as some packages are not supporting 1.14.
`docker run --rm -it -v $(pwd):/project golang:1.14 /bin/sh -c "cd /project && go get ./... && go mod tidy"`
2021-11-10 19:16:57 +02:00
toimtoimtoim
7ef3e0002d update dependencies 2021-11-10 19:16:57 +02:00