imxyb
c0bc886b78
refactor: use strings.ReplaceAll directly
2023-03-31 20:59:08 +03:00
ivansmaliakou
f22ba6725c
documentation: changed description for Bind()
method of Context interface
. Because Bind()
` binds not only request body, but also path and query params
2023-03-16 07:46:03 +02:00
toimtoimtoim
ec642f7df1
Fix group.RouteNotFound not working when group has attached middlewares
2023-03-02 23:14:52 +02:00
Becir Basic
5b36ce3612
Fixes the concurrency issue of calling the Next()
proxy target on RRB ( #2409 )
...
* Fixes the concurrency issue of calling the `Next()` proxy target on round robin balancer
- fixed concurrency issue in `AddTarget()`
- moved `rand.New()` to the random balancer initializer func.
- internal code reorganized eliminating unnecessary pointer redirection
- employing `sync.Mutex` instead of `RWMutex` which brings additional overhead of tracking readers and writers. No need for that since the guarded code has no long-running operations, hence no realistic congestion.
- added additional guards without which the code would otherwise panic (e.g., the case where a random value is calculation when targets list is empty)
- added descriptions for func return values, what to expect in which case.
- Improve code test coverage
---------
Co-authored-by: Becir Basic <bb@neotel.at>
2023-02-24 20:32:41 +02:00
Omkar
1e575b7b56
Added a optional config variable to disable centralized error handler in recovery middleware ( #2410 )
...
Added a config variable to disable centralized error handler in recovery middleware
2023-02-24 13:09:40 +02:00
toimtoimtoim
47844c9b7f
Changelog for v4.10.2
2023-02-22 01:11:41 +02:00
toimtoimtoim
f909660bb9
Add middleware.CORSConfig.UnsafeWildcardOriginWithAllowCredentials to make UNSAFE usages of wildcard origin + allow cretentials less likely.
2023-02-22 00:05:31 +02:00
toimtoimtoim
ef4aea97ef
use different variable name so returned function would not accidentally be able to use it in future and cause data race
2023-02-22 00:05:31 +02:00
Martti T
7c7531002d
Clean on go1.20 ( #2406 )
...
* Fix tests failing on Go 1.20 on Windows. Clean works differently on 1.20. Use path.Clean instead with some workaround related to errors.
2023-02-22 00:00:52 +02:00
Ara Park
04ba8e2f9d
Add more http error values ( #2277 )
...
* Add more HTTP error constants
2023-02-21 22:32:11 +01:00
toimtoimtoim
b888a30fe3
Changelog for v4.10.1
2023-02-19 21:12:17 +02:00
toimtoimtoim
2c25767e45
remediate flaky timeout tests
2023-02-19 20:26:17 +02:00
toimtoimtoim
a3998ac96a
Upgrade deps due to the latest golang.org/x/net vulnerability
2023-02-19 20:26:17 +02:00
toimtoimtoim
45da0f888b
remove .travis.yml
2023-02-19 20:26:17 +02:00
Roman Garanin
6b09f3ffeb
Update link to jaegertracing
...
Added https:// prefix, without it github markdown rendering does strange things
2023-02-10 14:43:25 +02:00
Hakan Kutluay
82a964c657
Add context timeout middleware ( #2380 )
...
Add context timeout middleware
Co-authored-by: Erhan Akpınar <erhan.akpinar@yemeksepeti.com>
Co-authored-by: @erhanakp
2023-02-01 22:38:20 +02:00
Brie Taylor
08093a4a1d
Return an empty string for ctx.path if there is no registered path
2023-01-28 18:15:49 +02:00
toimtoimtoim
24a30611df
Add new JWT repository to the README
2023-01-04 00:09:30 +02:00
toimtoimtoim
f36d5662fb
Changelog for 4.10.0
2022-12-27 21:59:53 +02:00
toimtoimtoim
a69727e2b9
Mark JWT middleware deprecated
2022-12-27 21:59:53 +02:00
toimtoimtoim
0056cc8ec0
Improve comments wording
2022-12-25 22:19:15 +02:00
toimtoimtoim
45402bb393
Add echo.OnAddRouteHandler field. As name says - this handler is called when new route is registered.
2022-12-25 22:19:15 +02:00
toimtoimtoim
f1cf1ec930
Fix adding route with host overwrites default host route with same method+path in list of routes.
2022-12-25 22:19:15 +02:00
yagikota
895121d178
Fix rate limiter docs ( #2366 )
...
* Improve wording for the comment of Burst
* Improve rate limiter docs
2022-12-17 11:16:00 +02:00
Roland Lammel
abecadcbdc
Merge pull request #2362 from aldas/add_govulncheck_2_ci
...
Add govulncheck to CI and bump dependencies
2022-12-14 14:31:13 +01:00
toimtoimtoim
bc75cc2b17
Add govulncheck to CI and bump dependencies. Refactor GitHub workflows.
2022-12-13 11:54:47 +02:00
Alex
40eb889d14
build: harden echo.yml permissions
...
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-12-08 21:48:16 +02:00
Kanji Yomoda
135c511f5d
Add request route with "route" tag to logger middleware ( #2162 )
2022-12-04 19:38:45 +01:00
Martti T
8d4ac4c907
Additional configuration options for RequestLogger and Logger middleware ( #2341 )
...
* Add `middleware.RequestLoggerConfig.HandleError` configuration option to handle error within middleware with global error handler thus setting response status code decided by error handler and not derived from error itself.
* Add `middleware.LoggerConfig.CustomTagFunc` so Logger middleware can add custom text to logged row.
2022-11-30 15:47:23 +02:00
Martti T
466bf80e41
Add testcases for some BodyLimit middleware configuration options ( #2350 )
...
* Add testcases for some BodyLimit middleware configuration options
2022-11-25 13:27:52 +02:00
Wim
7544796946
Remove square brackets from ipv6 addresses in XFF ( #2182 )
...
Remove square brackets from ipv6 addresses in XFF
2022-11-24 22:17:31 +02:00
OHZEKI Naoki
36ff0b3fbd
Replace relative path determination from proprietary to std
2022-11-23 09:42:40 +02:00
toimtoimtoim
a0c211542c
Add staticcheck to CI flow
2022-11-21 16:26:13 +02:00
zeek
3c4d3b3083
Replace "io/ioutil"
...
"io/ioutil" pakcage has been deprecated since Go 1.16.
2022-11-21 15:59:14 +02:00
toimtoimtoim
be23ab67cc
Add new method HTTPError.WithInternal
2022-11-19 23:05:16 +02:00
wanghaha-dev
fd2b102d3e
Modify comment syntax error
2022-11-12 23:56:47 +02:00
lkeix
a97d4bfb7b
fix func(Context) error to HandlerFunc
2022-11-12 23:54:51 +02:00
toimtoimtoim
35184a893b
Expose middleware.CreateExtractors function so we can use it from echo-contrib repository
2022-11-12 23:34:04 +02:00
toimtoimtoim
b010b69329
Bump dependencies and add notes about Go releases we support
2022-11-12 21:52:54 +02:00
Hristo Hristov
0ce73028d0
[suggestion] Add helper interface for ProxyBalancer interface ( #2316 )
...
* [suggestion] Add helper interface for ProxyBalancer interface
* Update proxy_test.go
* addressed code review comments
* address pr comments
* clean up
* return error
2022-10-29 21:54:23 +03:00
Patrick Brueckner
8f2bf82982
go mod tidy
2022-10-18 11:51:53 +03:00
Patrick Brueckner
b02e78ba55
bump x/text to 0.3.8
...
see https://go.dev/issue/56152 , https://ossindex.sonatype.org/vulnerability/CVE-2022-32149?component-type=golang&component-name=golang.org%2Fx%2Ftext&utm_source=nancy-client&utm_medium=integration&utm_content=1.0.41
2022-10-18 11:51:53 +03:00
toimtoimtoim
8ad22302f2
Changelog for v4.9.1
2022-10-12 22:37:08 +03:00
toimtoimtoim
56f63c3036
bump github.com/labstack/gommon dependency version
2022-10-12 22:37:08 +03:00
Martti T
1d5f335f40
refactor assertions ( #2301 )
2022-10-12 21:47:21 +03:00
Amir Hossein
4c44305b23
update tests ( #2275 )
...
update tests
2022-10-06 11:34:00 +03:00
Martti T
79221d91ca
Update readme about supported Go versions ( #2291 )
2022-10-05 06:36:12 +03:00
Amir Hossein
666938e523
tests: error handling on closing body ( #2254 )
...
* tidy up tests
2022-09-14 08:40:39 +03:00
Daniel Price
50e7e569f0
Improve CORS documentation
...
* Provide links to further reading
* Provide security warnings
* Document undocumented wildcard feature
* Update to go-1.19 style links
2022-09-12 22:46:13 +03:00
toimtoimtoim
16d3b65eb0
Changelog for 4.9.0
2022-09-04 23:04:47 +03:00