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

1106 Commits

Author SHA1 Message Date
Edward Muller
6f90742dec Set the Content-Encoding header earlier for Static
Static uses ServeContent, which looks to see if the Content-Encoding
header is set or not to determine if it should set the Content-Length.

If Content-Length is set by something it will be wrong after the gzip
compression happens and stricter routers (and tools like curl) will
have problems with the request.

Fixes #806
2017-02-13 19:12:58 -08:00
Yusuke Komatsu
0c7c1b78e7 fix import cycle middleware 2017-02-10 17:45:35 +09:00
Yusuke Komatsu
2995614e54 add id (Request ID) in logger format. 2017-02-10 16:40:54 +09:00
Yusuke Komatsu
4dc9cd0bb6 remove debug print in request_id_test.go 2017-02-10 16:38:45 +09:00
Yusuke Komatsu
1963e27070 git add RequestID middleware 2017-02-10 16:21:32 +09:00
Diego Siqueira
a8b6864be3 Two little typos on comments (#835) 2017-02-02 11:50:17 -08:00
Vishal Rana
c7c4395fbd Fixed #794
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-31 13:55:39 -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
aa483fd34f Merge branch 'master' of https://github.com/labstack/echo 2017-01-25 20:44:08 -08:00
Vishal Rana
8fec907eec Mutex to dynamically make changes (#828)
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-24 10:48:11 -08:00
Vishal Rana
4772b6e7f7 Removed port check from auto tls
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-24 10:46:35 -08:00
Vishal Rana
b750318e6e Removed port check from auto tls
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2017-01-24 08:48:00 -08:00
Vishal Rana
7025f55cab Error for non 443 port for auto tls
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-23 15:39:19 -08:00
Vishal Rana
900a463715 Fixed #817
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-21 10:40:11 -08:00
Vishal Rana
17d66313ff Merge branch 'master' of https://github.com/labstack/echo 2017-01-21 10:21:02 -08:00
Vishal Rana
e8910be0ac Updated deps and docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-21 10:20:59 -08:00
Peter Fern
8cd3cb043b logger: Don't copy lock value in LoggerConfig.pool, use a pointer (#825)
Fixes #710 `go vet` failures
2017-01-21 10:18:34 -08:00
Vishal Rana
069e80b9e0 Mention about custom listener
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-18 12:17:44 -08:00
Vishal Rana
49321f5829 Updated website and examples
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-17 10:47:16 -08:00
Vishal Rana
a89cf4d0c2 Fixed doc search
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-16 16:40:45 -08:00
Jonathan Hall
ed7353cf60 Fix binding of untagged struct fields (#812)
* Add failing test

A BindUnmarshaler struct with no tag is not decoded properly.

* Fix binding of untagged structs
2017-01-15 23:13:46 -08:00
Vishal Rana
80d5c96212 Closed #823
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-15 22:30:58 -08:00
Vishal Rana
b2c623b07d Fixed a typo
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-15 17:11:04 -08:00
Vishal Rana
093edb39ab Removed banner
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-15 12:56:35 -08:00
Piyush Chauhan
04a7fc65e3 Correcting the BasicAuth Method (#822)
Current method gives type error because `context` variable is not present. Adding the `c echo.Context` for resolving type error.
2017-01-14 20:16:33 -08:00
Vishal Rana
736d153c29 Startup banner 2017-01-14 12:49:58 -08:00
Vishal Rana
db8b2ce62c Fixed port display
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-14 09:22:30 -08:00
Vishal Rana
9797cf4b9c gc
Removed graceful shutdown, fixed #797

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-13 18:40:27 -08:00
Vishal Rana
8526358e8a Fixed logger middleware error return
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-12 16:08:12 -08:00
Vishal Rana
f56450d8ce Fixed #821
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-12 09:09:51 -08:00
Vishal Rana
0696d55586 Updated logger docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 21:02:34 -08:00
Vishal Rana
ce6b1e20db Logger middleware interface (#820)
* Modified logger format

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

* Logger middleware via struct

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

* Fixed time format

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 20:07:51 -08:00
Vishal Rana
a09afe2c97 Fixed #798
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-11 15:18:04 -08:00
Vishal Rana
ea1c7c5ba7 Fixed #811, closes #810
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-10 08:45:44 -08:00
Vishal Rana
63262b2311 Recipes => examples
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-09 20:23:57 -08:00
Vishal Rana
35742c9f04 Update website
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-09 20:20:51 -08:00
Brett
73b7ecaed5 correct wrong package reference (#809)
Discard is not part of the io package, it is part of ioutil
2017-01-09 18:57:14 -08:00
Vishal Rana
8047be7f12 Updated website
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-05 21:52:18 -08:00
Vishal Rana
9fe724dedb Fixed #802, closes #773
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-05 12:38:39 -08:00
Vishal Rana
4cbef06bef Fixed basic auth middleware, closes #799
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-05 12:12:31 -08:00
bill
bf317578d7 correct the document about disabl logs (#801)
there is a spelling error , it`s disable not disabl:)
2017-01-04 13:20:36 -08:00
Vishal Rana
54fb1015c1 Pretty print in debug mode
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-04 12:00:49 -08:00
Vishal Rana
c935874aa8 Fixed #797
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-04 11:39:28 -08:00
Vishal Rana
ee2ac3b9a2 Key auth validator now accepts context
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-03 20:48:21 -08:00
Vishal Rana
97c680662d Fixed key auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-02 23:09:46 -08:00
Clinton Freeman
ff27cfaab3 removed old/deprecated import. (#796) 2017-01-02 21:33:42 -08:00
Vishal Rana
412823eabb Added key auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-02 20:12:06 -08:00
Tobias Schwarz
ab203bf19c Add directory to store the certificate and mention rate limits (#795)
The certificate must be cached to avoid problems with rate limits during testing.
2017-01-02 16:36:37 -08:00
Ted Kornish
eb7ebca112 Correct comment for Context.Response (#793) 2017-01-01 22:02:14 -08:00
Vishal Rana
6e107bc897 Not sending internal errors
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-29 08:19:52 -08:00