1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-30 08:46:41 +02:00
Commit Graph

408 Commits

Author SHA1 Message Date
Arun Gopalpuri
1a6ec73e57 using url.EscapedPath instead of custom GetPath, rewritePath func added to middleware - used by proxy and rewrite 2020-08-31 13:09:24 -07:00
Vishal Rana
cb84205219 Bumped version
Signed-off-by: Vishal Rana <vr@labstack.com>
2020-08-27 20:09:25 -07:00
风吹过
28020c2a47
The directory path does not end with '/', it needs to be redirected (#1572)
* The directory path does not end with '/', it needs to be redirected

* changed guide highlighting to shell (#1593)

* Fix recover print stack trace log level (#1604)

* Fix recover print stack trace log level

* Add recover log level test

* Add default LogLevel to DefaultRecoverConfig

Co-authored-by: solym <ymwh@foxmai.com>
Co-authored-by: roz3x <52892437+roz3x@users.noreply.github.com>
Co-authored-by: Masahiro Furudate <178inaba.git@gmail.com>
2020-08-27 17:53:48 -07:00
Roland Lammel
d3245067e0
Merge pull request #1559 from flimzy/wrapper
Extend HTTPError to satisfy the Go 1.13 error wrapper interface
2020-07-23 21:51:54 +02:00
buglan
546639c8d0 Fix duplicate code 2020-07-08 20:17:34 +08:00
Jonathan Hall
803c4f673b Extend HTTPError to satisfy the Go 1.13 error wrapper interface 2020-04-29 16:13:30 +02:00
Arun Gopalpuri
2207c37bf8
use echo.GetPath for rewrite in proxy (#1548)
Co-authored-by: Arun Gopalpuri <arun@gopalpuri.com>
2020-04-08 08:19:22 -07:00
Vishal Rana
6e7c7cea03 Bumped version
Signed-off-by: Vishal Rana <vr@labstack.com>
2020-03-30 12:32:58 -07:00
Vishal Rana
fc4b1c0a83
Omit internal=<nil> in error strings (#1525) 2020-03-05 06:36:43 -08:00
Vishal Rana
3e8a797db0 Updated version
Signed-off-by: Vishal Rana <vr@labstack.com>
2020-02-29 07:49:22 -08:00
Shinichi TAMURA
7c5af01350
Safer/trustable extraction of real ip from request (#1478)
* Safer/trustable extraction of real ip from request

* Fix x-real-ip handling on proxy

* fix docs

* fix default check
2020-02-24 08:29:34 -08:00
Jur van den Berg
504f39abaf
Fix crash on OpenBSD due to unsupported TCP KeepAlivePeriod (#1456) 2020-02-03 10:09:27 -08:00
ochan
c2f2e8d258
Support HTTP/2 h2c mode (cleartext) (#1489) 2020-01-28 14:46:00 -08:00
Ajitem Sahasrabuddhe
5bf6888444 Parameterized routes sometimes return 404 (#1480)
* url param bug

* add comment

* add tests

* Bump echo version
2020-01-23 16:13:18 -08:00
Ajitem Sahasrabuddhe
5793765eed Fix param value bug (#1467)
* set parameter value in the pvalues slice

* update echo version

* update travis yml to fix failing build and add go modules support

* Add tests

* Update router_test.go

Co-authored-by: Vishal Rana <vr@labstack.com>
2020-01-01 08:57:00 -08:00
Vishal Rana
c50c67783f Fixed #1426
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-10-30 19:01:23 -07:00
Vishal Rana
d286e285dc Bumped v4.1.11
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-10-06 17:01:28 -07:00
Vishal Rana
88a9ad73ec Updated dep & bumped v4.1.10
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-08-17 07:39:36 -07:00
Vishal Rana
350ccd2452 Bumped vv4.1.9
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-08-11 12:55:02 -07:00
Vishal Rana
2b0cfbe75d Merge branch 'master' of https://github.com/labstack/echo 2019-08-11 12:48:52 -07:00
Vishal Rana
ecc01d2051 Include internal error in http error handler
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-08-11 12:48:50 -07:00
Jesse Szwedko
608cebbaae Assign new ResponseWriter after calling http.HandlerFunc (#1341)
Otherwise, the `http.ResponseWriter` passed to `next()` within the
middleware is unused. This precludes middlewares from wrapping the
http.ResponseWriter to do things like record the status code.
2019-08-07 11:10:18 -07:00
Vishal Rana
09d415cefc Fixed version
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-08-04 21:47:41 -07:00
Vishal Rana
ed51400a81 Enhanced default http error handler
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-08-01 22:52:42 -07:00
Hylke Visser
87da9a948b Add ReferrerPolicy to Secure middleware (#1363) 2019-08-01 15:27:09 -07:00
Nipe Setiawan
01229ec651 fix version string to 4.1.6 (#1358) 2019-07-01 09:58:23 -07:00
kolaente
610d67f17f Added support for the REPORT method (#1332) 2019-06-09 09:11:18 -07:00
Vishal Rana
5d2c33ad5d Bumped v4.1.5
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-29 22:54:49 -07:00
Vishal Rana
64c6d92295 Fixed group middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-29 16:46:08 -07:00
Vishal Rana
f27e87f36e Fixed golint error
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-29 13:53:12 -07:00
Vishal Rana
4de244c072 Fixed invalid json value for error in logger middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-29 13:21:11 -07:00
Vishal Rana
8c13b9dae2 Fixed sub-group virtual hosts 2019-04-28 23:10:00 -07:00
Vishal Rana
46ae04bef2 Added a method to return routers map
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-28 22:49:18 -07:00
Vishal Rana
c8e923cf54 Bumped 4.1.0
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-28 22:25:45 -07:00
Vishal Rana
6f0a227a5a Built-in capability to run multiple hosts
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-28 22:22:35 -07:00
Andrew Braunstein
e3717be4be ensure that the TLS conifg contains the ALPN protocol (#1305) 2019-03-12 17:54:16 -07:00
Hemachandar
08db4bd39b simplify middleware chain creation (#1299) 2019-03-05 08:24:59 -08:00
Kumar Harsh
802fb5bba6 feat(secure): support Content-Security-Policy-Report-Only header (#1287)
Closes #1283
2019-02-26 22:32:07 -08:00
Mohamed Bana
8716acb0ab Echo.StartTLS: accept string or []byte as parameters. (#1277)
If `certFile` or `keyFile` is `string` the values are treated as file paths.
If `certFile` or `keyFile` is `[]byte` the values are treated as the certificate or key as-is.
2019-02-15 09:51:54 -08:00
Evgeniy Kulikov
bc28fceaf3 Fix unhandled errors (#1271) 2019-02-01 06:33:56 -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
Alex Ungur
0b714f3482 Bumped up the version 2019-01-28 17:43:48 +02:00
Alex Ungur
afe90e79d9 Bumped up version to include -dev 2019-01-27 00:44:28 +02:00
Alex Ungur
739700bf4e Bumped up version to 3.3.9 (related to #1244) 2019-01-27 00:39:45 +02:00
Shu Kutsuzawa
e6ac0023d2 Add golint to ci (#1243)
* add golint to travis ci

* fixed based on golint

* Update echo.go
2019-01-09 15:19:48 -08:00
Charlie Bevis
1481763035 comment typo fix (#1246) 2019-01-09 15:14:26 -08:00
Vishal Rana
ba46ff80a4 Using tls-alpn for auto tls
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-11-08 19:17:59 -08:00
Alexandru Ungur
ba1891b3dc Add back exported HTTP method constants (#1209) 2018-10-15 13:01:26 +05:30
Emir Ribić
c8fd197fa8 Replace http constants with stdlib ones, i.e.: http.MethodGet instead of echo.GET (#1205) 2018-10-14 20:46:58 +05:30
Gregor Noczinski
bc37a3a792 Proxy: Better errors + remote custom TLS (#1197)
Proxy will be more verbose on errors + possibility to configure custom transport (example: for custom TLS certificates)
2018-10-13 11:40:19 +05:30