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

1488 Commits

Author SHA1 Message Date
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
Alexey Palazhchenko
d79c13108c Use latest released Go versions (#967) 2017-07-07 10:22:05 -07:00
Nick Law
e0ea129c5c Expose echo.Add() for dynamic route registration (#965) 2017-07-03 19:10:58 -07:00
Vishal Rana
ee85b46a05 Changed signature for response before func
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-29 10:59:21 -07:00
Vishal Rana
c7531df815 Fixed build
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-28 19:08:45 -07:00
Vishal Rana
f96c973a25 Fixed #176, closed #831
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-28 17:01:48 -07:00
Vishal Rana
17c4df3e77 Fixed #444, closed #964
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-28 10:05:09 -07:00
Vishal Rana
e952538fec Update README.md 2017-06-28 09:17:02 -07:00
Vishal Rana
83eadbad18 Fixed #963
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-24 09:50:07 -07:00
Vishal Rana
06189d002b Fixed panic messages
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-22 22:48:23 -07:00
Vishal Rana
7c614588bc Updated github issue template
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-22 11:27:49 -07:00
Miha Valencic
c04b028852 Support route naming and generating URLs based on route names (#960)
* Route registration methods return Route object

* Renamed Route#Handler to Route#Name

* Adding route return value to Any, Match, Static and File methods.
2017-06-22 10:59:02 -07:00
Vishal Rana
935a60782c Missed version label
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-21 08:07:43 -07:00
Vishal Rana
687f05470a Zhaojkun httperror message (#959)
* Change echo http error message

* Add test case

* Fixed test cases

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-20 08:58:53 -07:00
Nick Hudkins
7676f85ef9 Allow interface{} as key for JWT middleware argument (#957) 2017-06-19 15:42:27 -07:00
Vishal Rana
18ccbf35d8 Update README.md 2017-06-18 23:05:39 -07:00
Vishal Rana
ddd92db03b Update README.md 2017-06-18 22:39:58 -07:00
Vishal Rana
2d7cce4677 Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-15 08:44:21 -07:00
Vishal Rana
e1e3ebe5a1 Proxy middleware refactor
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-15 08:19:18 -07:00
Vishal Rana
e827c85dc5 Issue 950 (#955)
* Added implementation #950

Signed-off-by: Vishal Rana <vr@labstack.com>

* Added test for body-dump middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-14 23:03:38 -07:00
Vishal Rana
1e51b33509 Create ISSUE_TEMPLATE.md 2017-06-14 21:15:04 -07:00
Vishal Rana
1b70cbebbe Fixed #954
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-14 16:30:53 -07:00
Vishal Rana
ea352bedb6 Merge branch 'master' of https://github.com/labstack/echo 2017-06-12 10:40:08 -07:00
Vishal Rana
3fafadf895 Updated ci
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2017-06-09 19:28:49 -07:00