1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-20 19:52:47 +02:00
Commit Graph

1370 Commits

Author SHA1 Message Date
Romain Gros
fb30777387 Return error of context.File in c.contentDisposition
context.Attachment and context.Inline use context.contentDisposition under the hood.
However, context.contentDisposition does not forward the error of context.File, leading to response 200 OK even when the file does not exist.
This commit forward the return value of context.File to context.contentDisposition to prevent that.
2018-03-06 10:50:53 -08:00
Alex Ungur
9b9f4facd6 Add X-Requested-With header constant 2018-03-06 10:29:20 -08:00
Alexandre Stein
3cdcc65b23 Add some tests 2018-03-01 12:08:34 -08:00
Alexandre Stein
931588a880 Update the dependency 2018-03-01 12:08:34 -08:00
Alexandre Stein
7f6c0f4fc0 Can be a fix for auto TLS 2018-03-01 12:08:34 -08:00
ferhat elmas
3641cbcdad Fix formatting (#1071) 2018-02-25 13:42:58 -08:00
Evgeniy Kulikov
6da0483447 [FIX] We must close gzip.Reader, only if no error (#1069)
* [FIX] We must close gzip.Reader, only if no error
* review comments fix
2018-02-23 11:32:27 -08:00
Vishal Rana
4f3080c197 Bit of more cleanup
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-02-21 11:38:22 -08:00
Evgeniy Kulikov
f49d166e6f [FIX] Cleanup code (#1061)
Code cleanup
2018-02-21 10:44:17 -08:00
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