1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-18 16:20:53 +02:00
Commit Graph

1761 Commits

Author SHA1 Message Date
Evgeniy Kulikov
90d675fa2a [TravisCI] Add 1.10 release (#1068) 2018-02-21 09:55:08 -08:00
ferhat elmas
7eec915044 Fix deferring body close in middleware/compress test (#1063) 2018-02-19 08:21:01 -08:00
Airking05
181e11a330 [Add] custom time stamp format #1046 (#1066)
* [Add] custom time stamp format

* [Update] property name & default value & comment about custom logger
2018-02-19 08:05:09 -08:00
Evgeniy Kulikov
e9f67801e3 [FIX] Simplify dep fetching (#1062)
* [FIX] Simplify dep fetching

* fix Makefile
2018-02-11 07:30:38 -08:00
Vishal Rana
353564c797
Update README.md 2018-02-10 13:37:12 -08:00
Vishal Rana
fad19bf4ea
Update README.md 2018-02-05 22:41:57 -08:00
Vishal Rana
1a182abf25
Update README.md 2018-02-04 15:32:34 -08:00
orangain
ef82f3e034 Avoid redirect loop in HTTPSRedirect middleware (#1058)
In HTTPSRedirect and similar middlewares, determining if redirection is
needed using `c.IsTLS()` causes redirect loop when an application is running
behind a TLS termination proxy, e.g. AWS ELB.

Instead, I believe, redirection should be determined by
`c.Scheme() != "https"`. This works well even behind a TLS termination proxy.
2018-02-02 07:31:07 -08:00
Vishal Rana
ec048ea523 Fixed #1052, dropped param alias feature
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-01-30 19:02:29 -08:00
Vishal Rana
67a5dcdb91 Fixed #1054
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-01-30 10:36:20 -08:00
Alexandru Ungur
7c1071dcb1 DRY'ed the redirect middleware tests a little (#1055) 2018-01-30 10:02:26 -08:00
Vishal Rana
f710bf653b
Update README.md 2018-01-29 23:15:41 -08:00
Vishal Rana
42aa667d3b
Update README.md 2018-01-29 20:38:18 -08:00
Vishal Rana
37a2533ad4 Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-01-29 20:03:53 -08:00
Brian Danowski
65f3fcbfe2 Adds example to readme (#1044) 2018-01-29 20:00:48 -08:00
Alexandru Ungur
2769113edf Applied a little DRY to the redirect middleware (#1053) 2018-01-29 19:54:02 -08:00
Steffen Windoffer
40cae83772 fix href url from armor to echo (#1051) 2018-01-25 09:26:21 -08:00
Vishal Rana
b6040409ee
Update README.md 2018-01-13 11:40:39 -08:00
Ben Katz
c8bedd1cf9 Adds a separate flag for the 'http/https server started on' message (#1043) 2017-12-29 10:57:59 -08: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
434f4d1ae8 Fixed #990
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-28 10:41:13 -08:00
jerCarre
d174d65fd5 Update key_auth.go (#984)
Add ability to extract key from a form field
2017-12-28 09:32:14 -08:00
Vishal Rana
9ae7047759 Rewrite rules for proxy middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-27 15:14:44 -08:00
Vishal Rana
62f95acdd7 Dynamically add/remove proxy targets
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-25 14:39:37 -08:00
Vishal Rana
a028fd41fd Fixed Response#Before()
Implemented Response#After()

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-24 11:01:53 -08:00
Vishal Rana
b338075a0f Update dummy group path to include exact prefix
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-23 09:11:03 -08:00
Vishal Rana
8e421d9773 Fixed #1019
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-22 12:09:52 -08:00
Vishal Rana
0473c51f1d Released 3.2.5
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-11-22 17:58:59 -08:00
Cuong Manh Le
7fe7f348eb Basic scheme is case-insensitive (#1033) 2017-11-20 15:57:41 -08:00
Vishal Rana
b28538b2e3 Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-10-01 14:56:42 -07:00
Vishal Rana
a625e589cf Updated make
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-09-21 12:45:27 -07:00
Vishal Rana
914a544bef Updated recover middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-09-21 12:07:04 -07:00
Vishal Rana
b5de47f165 Send error details when Echo#Debug is true, #817
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-09-21 08:46:47 -07:00
Vishal Rana
b7c4ccf8f3 Fixed typo
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-09-19 22:15:12 -07:00
Vishal Rana
1678da53d6 Closes #1006
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-09-08 08:48:23 -07:00
Vishal Rana
f2bc6802be Exposed JWT error
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-31 10:17:27 -07:00
Vishal Rana
7dfec7e641 Custom jwt errors (#999)
* Custom error for jwt
* New field `inner` in HTTPError to store error from external dependency

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-31 09:18:42 -07:00
Vishal Rana
cec7629194 Fixed test for content disposition
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-24 08:57:36 -07:00
goofle
4df355113b Wrap Content-Disposition filename with quotes (#996) 2017-08-24 08:35:50 -07:00
Vishal Rana
57bf87258f Fixed #995
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-24 08:27:15 -07:00
jro
6c54ff78a2 fix build constraint go1.8 (#993)
* fix build constraint go1.8

go1.8 wasn't properly excluded

* Update util_go17.go
2017-08-22 08:26:26 -07:00
Amr Tamimi
7d67651a3b check proxy skipper before proceeding (#992) 2017-08-19 18:42:58 -07:00
Vishal Rana
a26bc31e27 Setting log level to ERROR
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-17 19:46:17 -07:00
Vishal Rana
70c18060bd Fixed #988, Closed #989
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-14 21:48:19 -07:00
bartoszgolek
1e9845a414 Expose group.add() method for dynamic route registration (#985) 2017-08-08 11:08:13 -07:00
Vishal Rana
2b6ea65ccd Removed duplicated code in binder
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-03 07:52:47 -07:00
Vishal Rana
b42edd791f Closes #980
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-08-02 23:16:11 -07:00
Guilherme Oenning
f8c3008787 Request: New bind property for route parameters (#973)
* bind route params

* rename to bindPathData
2017-07-25 07:22:19 -07:00
Rene Jochum
0769b34b52 Use the NotFoundHandler when a file haven't been found. (#966)
This is especialy usefull when you use e.Static("/", "static") and you
want a notfoundhandler that serves your index.html like this:

echo.NotFoundHandler = func(c2 echo.Context) error {
	index := filepath.Join(c.config.StaticDir, c.config.Index)
	_, err := os.Open(index)
	if err != nil {
		return echo.ErrNotFound
	}
	return c2.File(path.Join(c.config.StaticDir, c.config.Index))
}

Another usecase with the Handler above is HTML5 SPF applications.

One caveat, you need to make sure that your NotFoundHandler doesn't
produce loops.

Signed-off-by: Rene Jochum <rene@jochums.at>
2017-07-19 11:29:41 -07:00
Paul Tyng
a5c75b002d Fix issue with JWT race (#968) 2017-07-14 11:55:19 -07:00