1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-13 01:30:31 +02:00

1631 Commits

Author SHA1 Message Date
ec5b858dab Changes from master (from 5b36ce3612 to b3ec8e0fdd) 2023-07-22 23:39:03 +03:00
c2af0cf5a8 fix test 2023-07-22 23:39:03 +03:00
6fd1cc3716 improve docs 2023-07-22 23:39:02 +03:00
2366d5e3c1 minimize references to external types (rate.Limit) 2023-07-22 23:39:02 +03:00
13a733fdf9 Changes from master (from 70acd57105 to 5b36ce3612) 2023-07-22 23:39:01 +03:00
0d62f0065f fix 2023-07-22 23:39:01 +03:00
5cb7cefcc5 Bring over changes from master (latest commit f36d5662fb) 2023-07-22 23:39:01 +03:00
74b8c4368c Bring over changes from master (latest commit 135c511f5d) 2023-07-22 23:39:00 +03:00
74022662be Merge branch 'v5_alpha' into v5_alpha_labstack
# Conflicts:
#	.github/workflows/echo.yml
#	Makefile
#	context.go
#	context_test.go
#	echo.go
#	echo_test.go
#	group.go
#	group_test.go
#	middleware/basic_auth.go
#	middleware/basic_auth_test.go
#	middleware/body_limit_test.go
#	middleware/decompress_test.go
#	middleware/extractor.go
#	middleware/jwt.go
#	middleware/jwt_external_test.go
#	middleware/jwt_test.go
#	middleware/key_auth.go
#	middleware/key_auth_test.go
#	middleware/logger.go
#	middleware/method_override_test.go
#	middleware/recover.go
#	middleware/recover_test.go
#	router.go
#	router_test.go
#	server_test.go
2022-07-17 23:38:27 +03:00
aad765a542 Changes from master (from 70acd57105 to 70acd57105) 2022-07-17 22:19:09 +03:00
2b4c5a4097 expose source for KeyAuth/JWT key/token validation/parsing function to allow custom logic depending from where key/token value was extracted 2022-05-22 00:37:19 +03:00
0d85116728 Add Context.PathParamDefault(name string, defaultValue string) string method
Improve method comments here and there.
2022-05-22 00:37:19 +03:00
7efeffb06b Fixes from rebase, Bump Github actions, Fix staticcheck problems 2022-05-22 00:37:14 +03:00
3d2da856e3 Fix server related tests (different error messages) on Windows 2022-05-22 00:35:40 +03:00
829ddef710 V5.0.0-alpha 2022-05-22 00:35:33 +03:00
d5f883707b Timeout mw: rework how test waits for timeout. Using sleep as delay i… (#2187)
* Timeout mw: rework how test waits for timeout. Using sleep as delay is problematic when CI worker is slower than usual.
2022-05-22 00:21:50 +03:00
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
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
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
a987b6577c Update Github CI flow to use Go 1.18, bump actions versions 2022-04-29 22:34:24 +03:00
572466d928 Fix body_limit middleware unit test 2022-04-05 20:34:49 +03:00
63c62bcbe5 Tidy up comments for value binders 2022-03-17 14:14:42 +02:00
59d2eaa4ac Add new value binding methods (UnixTimeMilli,TextUnmarshaler,JSONUnmarshaler) to ValueBinder 2022-03-17 14:14:42 +02:00
ec92fedf21 Update version and changelog for 4.7.2 v4.7.2 2022-03-16 09:34:26 +02:00
1919cf4491 Timeout middleware write race 2022-03-16 08:09:29 +02:00
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
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
05df10c62f fix nil pointer exception when calling Start again after address binding error 2022-03-15 21:38:57 +02:00
b445958c3c Update version and changelog for 4.7.1 v4.7.1 2022-03-13 18:43:24 +02:00
54efc3850d remove some unused code (#2116)
* remove unused code
2022-03-13 15:31:39 +02:00
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
5ebed440ae Update version to v4.7.0 v4.7.0 2022-03-02 23:16:19 +01:00
da85d23d68 Revert "Update direct golang deps"
This reverts commit d66712b252.
2022-03-02 23:11:46 +01:00
d66712b252 Update direct golang deps 2022-03-02 22:59:19 +01:00
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
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
27b404bbc5 remove unused notFoundHandler in echo struct (#2102)
* remove unused notFoundHandler in echo
2022-02-23 13:28:20 +02:00
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
ed2888cfa1 Fix server related tests (different error messages) on Windows 2022-02-01 20:15:37 +02:00
c0c00e6241 V5.0.0-alpha 2022-02-01 00:48:37 +02:00
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
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
feaa6ede6a improve comments 2022-01-24 15:55:16 +02:00
db5bace1c4 fix Windows 2022-01-24 15:55:16 +02:00
b830c4ef95 Improve filesystem support. 2022-01-24 15:55:16 +02:00
af2a49dbbc Fix fs.Sub problems on Windows 2022-01-24 15:55:16 +02:00
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
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
f3865f9aa5 Minor syntax fixes (#1994) 2022-01-24 10:33:13 +01:00
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