wanghaha-dev
fd2b102d3e
Modify comment syntax error
2022-11-12 23:56:47 +02:00
Martti T
f09f2bd14e
Fix open redirect vulnerability with AddTrailingSlashWithConfig and RemoveTrailingSlashWithConfig (#1775,#1771)
...
* fix open redirect vulnerability with AddTrailingSlashWithConfig and RemoveTrailingSlashWithConfig (fix #1771 )
* rename trimMultipleSlashes to sanitizeURI
2021-02-11 14:53:22 +01:00
Evgeniy Kulikov
88965757af
Simplify code of Add/Remove trailing slash and fix bug ( #1275 )
...
* Simplify code of Add/Remove trailing slash
- simplify code (more informative / understanding)
- assert collides with imported package name (in tests)
- fix unhandled errors
* add tests for https://github.com/labstack/echo/pull/1275#issuecomment-460467700
2019-02-07 09:49:51 -08:00
Alex Ungur
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
Vishal Rana
da083ffd0a
Implemented rewrite middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-28 11:26:50 -08:00
Vishal Rana
52fa135fd5
Updated docs, exposed middleware.DefaultSkipper
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-28 11:46:43 -08:00
Vishal Rana
2aec0353f5
First commit to v3, #665
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-22 22:56:00 -07:00
Vishal Rana
3d9d408365
Options for redirect middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-31 20:10:14 -07:00
Vishal Rana
27f9b326b8
Ability to skip a middleware via callback
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-27 09:34:44 -07:00
Russ Egan
348edc31c6
fix index out of bounds if path is empty
2016-05-31 22:12:14 -04:00
Vishal Rana
08a173b476
Enhanced body-limit middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-23 11:23:15 -07:00
Vishal Rana
c6b32d5541
Added json tags to middleware config
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-18 18:53:54 -07:00
Vishal Rana
1afaa6ec0b
Updated docs, changes to static middleware config
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-10 11:52:04 -07:00
Vishal Rana
be825e0229
Refactored variable names
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-24 10:22:15 -07:00
Vishal Rana
1247552c9b
Fixed https://github.com/labstack/echox/issues/9
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-20 07:32:51 -07:00
Vishal Rana
11eafe9b90
Fixed slash middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-13 13:48:33 -07:00
Vishal Rana
b9aa2181b0
Trailing slash middleware with option to redirect
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-12 22:39:29 -07:00
Vishal Rana
b5d6c05101
Fixed #441 , #294
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-02 14:24:51 -07:00
Vishal Rana
1b3197a149
Middleware to add and remove trailing slash
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-31 12:38:48 -07:00
Vishal Rana
507c69ec80
StripTrailingSlash is now an option
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-09-01 08:03:01 -07:00
Vishal Rana
b4da73313f
Removed RedirectToSlash middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-28 15:26:17 -07:00
Vishal Rana
76e9b44190
Exposed DefaultHTTPErrorHandler function
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-28 16:50:49 -07:00
Vishal Rana
bf85c56b08
Encapsulated fields and exposed public functions.
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-22 04:40:01 -07:00
Vishal Rana
13ac746093
Refactored Echo.HandlerFunc, added WebSocket support.
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-20 14:38:51 -07:00
Vishal Rana
73fa05f826
Added panic recover middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-17 22:54:29 -07:00
Vishal Rana
f5a385b547
Middleware with options
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-14 16:25:49 -07:00
Vishal Rana
58ed17d35e
Update slash.go
2015-05-13 23:09:02 -07:00
Vishal Rana
54cad1ff14
Added slash middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-13 23:07:03 -07:00