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
d011ca6c83
Merge branch 'usk81-request-id'
2017-03-06 13:17:56 -08:00
Vishal Rana
81d86b90d0
Using random.String() for generating id
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-06 13:16:05 -08:00
Vishal Rana
66ae47cf9f
Merge branch 'request-id' of https://github.com/usk81/echo into usk81-request-id
2017-03-06 10:57:12 -08:00
Vishal Rana
6bb7747530
Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-05 19:08:11 -08:00
PapEr
948d607539
Update type typo for Header handler ( #868 )
...
The example for ServerHeader middleware is trying to set a `Echo/3.0` header,
but the response out put has a Echo/2.0 header, may confuse people.
2017-03-03 08:21:20 -08:00
Vishal Rana
b218599906
Fixed #864 ( #865 )
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-28 12:04:29 -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
7a858a7385
Merge branch 'nshmura-master'
2017-02-21 15:18:17 -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
70be2c2f87
Fixed import path
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-19 19:40:18 -08:00
Vishal Rana
1b83cb34ca
Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-19 19:37:55 -08:00
Vishal Rana
e7c89c424f
Updated graceful shutdown recipe with go1.8
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-19 19:14:19 -08: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
394f533510
Merge branch 'freeformz-fix806'
2017-02-14 14:11:35 -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
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