1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00
echo/middleware
pwli 7f502b1ff1
try to fix #1905 and add some notes (#1947)
* fix 1905 and add some notes

(cherry picked from commit 9d96199e2dbb6d4374b5a8b6e16fdc0b0d7cb3a7)

* fix typo

(cherry picked from commit e8ea1bcabb6cdb50b06e1ec0e7c3cce44287d8b7)

* Add tests for timeout middleware with full http.Server stack running.
Add warning about middleware

* Fix example

Co-authored-by: lipengwei <lipengwei@uniontech.com>
Co-authored-by: toimtoimtoim <desinformatsioon@gmail.com>
2021-08-22 20:25:09 +03:00
..
basic_auth_test.go Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism 2019-01-30 16:11:42 +02:00
basic_auth.go Uses strings.Equalfold (#1790) 2021-02-26 23:52:32 +02:00
body_dump_test.go Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism 2019-01-30 16:11:42 +02:00
body_dump.go Fixed comment typo in BodyDump (#1431) 2019-10-30 17:34:27 -07:00
body_limit_test.go Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism 2019-01-30 16:11:42 +02:00
body_limit.go Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism 2019-01-30 16:11:42 +02:00
compress_test.go Adding sync.Pool to Compress Middleware 2020-11-07 03:52:35 +00:00
compress.go Adding sync.Pool to Decompress middleware 2020-11-27 03:01:04 +00:00
cors_test.go CORS: add an optional custom function to validate the origin 2020-11-24 16:24:17 +09:00
cors.go Addressed PR feedback 2020-11-24 16:25:49 +09:00
csrf_test.go Add Go 1.16 to CI and drop 1.12 specific code (#1850) 2021-04-16 11:38:12 +02:00
csrf.go Add Go 1.16 to CI and drop 1.12 specific code (#1850) 2021-04-16 11:38:12 +02:00
decompress_test.go Increasing Decompress Middleware coverage 2020-11-28 02:03:54 +00:00
decompress.go Increasing Decompress Middleware coverage 2020-11-28 02:03:54 +00:00
jwt_test.go Ignore case of auth scheme in request header 2021-08-10 20:32:01 +03:00
jwt.go Ignore case of auth scheme in request header 2021-08-10 20:32:01 +03:00
key_auth_test.go Add Cookie to KeyAuth middleware's KeyLookup 2021-08-02 22:44:59 +03:00
key_auth.go Add Cookie to KeyAuth middleware's KeyLookup 2021-08-02 22:44:59 +03:00
logger_test.go improve code quality (#1792) 2021-02-26 12:04:34 +02:00
logger.go fix #1260 change middleware.Logger's default output (#1336) 2019-07-17 21:34:31 -07:00
method_override_test.go Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism 2019-01-30 16:11:42 +02:00
method_override.go Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism 2019-01-30 16:11:42 +02:00
middleware_test.go Allow proxy middleware to use query part in rewrite (fix #1798) (#1802) 2021-03-09 13:22:11 +01:00
middleware.go Allow proxy middleware to use query part in rewrite (fix #1798) (#1802) 2021-03-09 13:22:11 +01:00
proxy_test.go Add Go 1.16 to CI and drop 1.12 specific code (#1850) 2021-04-16 11:38:12 +02:00
proxy.go Add Go 1.16 to CI and drop 1.12 specific code (#1850) 2021-04-16 11:38:12 +02:00
rate_limiter_test.go improve code quality (#1792) 2021-02-26 12:04:34 +02:00
rate_limiter.go fix rateLimiteDoc 2021-06-02 21:22:17 +03:00
recover_test.go Fix recover print stack trace log level (#1604) 2020-07-06 07:59:42 -07:00
recover.go Fix recover print stack trace log level (#1604) 2020-07-06 07:59:42 -07:00
redirect_test.go Fix panic in redirect middleware on short host name (fix #1811) (#1813) 2021-04-06 09:11:31 +02:00
redirect.go Fix panic in redirect middleware on short host name (fix #1811) (#1813) 2021-04-06 09:11:31 +02:00
request_id_test.go Adds RequestIDHandler function to RequestID middleware 2021-07-05 21:12:17 +03:00
request_id.go Adds RequestIDHandler function to RequestID middleware 2021-07-05 21:12:17 +03:00
rewrite_test.go Allow proxy middleware to use query part in rewrite (fix #1798) (#1802) 2021-03-09 13:22:11 +01:00
rewrite.go Allow proxy middleware to use query part in rewrite (fix #1798) (#1802) 2021-03-09 13:22:11 +01:00
secure_test.go Add ReferrerPolicy to Secure middleware (#1363) 2019-08-01 15:27:09 -07:00
secure.go Add ReferrerPolicy to Secure middleware (#1363) 2019-08-01 15:27:09 -07:00
slash_test.go Fix open redirect vulnerability with AddTrailingSlashWithConfig and RemoveTrailingSlashWithConfig (#1775,#1771) 2021-02-11 14:53:22 +01:00
slash.go Fix open redirect vulnerability with AddTrailingSlashWithConfig and RemoveTrailingSlashWithConfig (#1775,#1771) 2021-02-11 14:53:22 +01:00
static_1_16_test.go Fix #1787: Add support for optional filesystem to the static middleware (#1797) 2021-05-08 22:33:17 +03:00
static_test.go Fix #1787: Add support for optional filesystem to the static middleware (#1797) 2021-05-08 22:33:17 +03:00
static.go Fix #1787: Add support for optional filesystem to the static middleware (#1797) 2021-05-08 22:33:17 +03:00
timeout_test.go try to fix #1905 and add some notes (#1947) 2021-08-22 20:25:09 +03:00
timeout.go try to fix #1905 and add some notes (#1947) 2021-08-22 20:25:09 +03:00
util_test.go Set subdomains to AllowOrigins with wildcard (#1301) 2019-03-09 10:32:49 -08:00
util.go Set subdomains to AllowOrigins with wildcard (#1301) 2019-03-09 10:32:49 -08:00