aruhi
1827916e76
Add cookie tag for logger ( #921 )
...
Thanks for your contribution 🎉
2017-05-08 08:10:11 -07:00
Vishal Rana
5f392f3bb1
Signature changed for key and basic auth validator
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-18 15:40:28 -07:00
Vishal Rana
62ab217b8c
Static middleware: html5 mode skip any route with extension
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-08 13:17:13 -07:00
Michał Mrozek
895613fd40
Fixed skipper for static middleware ( #896 )
2017-04-03 21:25:20 -07:00
Diego Siqueira
d67c6f029c
Underscoring unnecessary variables on CSRF test ( #836 )
2017-04-01 09:29:12 -07:00
nownabe
cb6f0a5f80
Enable custom request id generator ( #881 )
2017-03-17 09:22:58 -07:00
Vishal Rana
9016770066
Fixed #873
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-10 16:10:07 -08:00
Vishal Rana
4d6ccce2b4
Fixed test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-08 13:36:01 -08:00
Vishal Rana
4a9bc8c40e
Fixed static middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-08 12:18:00 -08:00
Vishal Rana
4b4a09fd31
Using random.String() for generating id
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-06 13:39:36 -08:00
Yusuke Komatsu
88b7cbb108
fix import cycle middleware
2017-03-06 13:39:36 -08:00
Yusuke Komatsu
d3d0ee6527
add id (Request ID) in logger format.
2017-03-06 13:39:36 -08:00
Yusuke Komatsu
f82701ebe9
remove debug print in request_id_test.go
2017-03-06 13:39:36 -08:00
Yusuke Komatsu
92b197d4b7
git add RequestID middleware
2017-03-06 13:39:36 -08:00
Vishal Rana
049518f8c4
Fixed static middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-23 12:27:48 -08:00
Vishal Rana
29fd5831ff
Fixed test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-22 15:57:12 -08:00
Vishal Rana
d259f88324
Enabled security while serving static files
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-22 14:21:28 -08:00
Vishal Rana
91d2727522
Fixed #838
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-22 13:04:08 -08:00
Vishal Rana
6574bdf207
Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-21 15:18:09 -08:00
nshmura
d28ea936d4
Add BasicAuth Realm support
2017-02-21 13:27:40 +09:00
Vishal Rana
a098bcd3b0
Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-19 13:02:10 -08:00
Vishal Rana
0b53f397ad
Fixed static middleware - test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-17 11:21:01 -08:00
Vishal Rana
0daffa37ce
Initial static middleware - #838
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-17 11:09:48 -08:00
Vishal Rana
7140e8395a
Using _fixture for testing
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-14 14:11:10 -08:00
Edward Muller
998c5de65f
Set the Content-Encoding header only when requested
...
Also if the Size == 0 unset the Content-Encoding header
2017-02-14 10:10:04 -08:00
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
Diego Siqueira
a8b6864be3
Two little typos on comments ( #835 )
2017-02-02 11:50:17 -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
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
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
736d153c29
Startup banner
2017-01-14 12:49:58 -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
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
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
Vishal Rana
412823eabb
Added key auth middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-02 20:12:06 -08:00
Vishal Rana
869cdcd19a
Dropped Response#Writer/SetWriter functions
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-21 18:56:35 -08:00
Vishal Rana
d9a6052c67
Closes #489 , Closes #781 , Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-20 23:13:46 -08:00
Vishal Rana
562021ed2d
fixed #781
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-20 13:58:45 -08:00
Vishal Rana
f5f75122ba
fixed #750
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-19 11:43:24 -08:00
Vikram Sreekumar
23176c639e
jwt-authscheme: support for custom jwt auth scheme
...
- added "AuthScheme" in the JWTConfig and set default value to
"Bearer".
- added test case for validating JWT Auth with a custom auth
scheme.
2016-12-19 11:39:31 -08:00
Vishal Rana
5706940bc8
HTTPError#Message is now interface
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-10 22:05:41 -08:00
Michael Köppl
f0b235c108
Fix typo ( #767 )
2016-12-09 09:05:40 -08:00
Vishal Rana
fe269b3e1c
fixed ##743
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-11-21 14:42:13 -08:00