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

1145 Commits

Author SHA1 Message Date
Vishal Rana
22012e0e9d Fixed #833
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-26 20:15:48 -07:00
Vishal Rana
0d23a63a96 Update README.md 2017-03-23 18:08:17 -07:00
Vishal Rana
eac431df0d Error forbidden
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-19 18:18:53 -07:00
nownabe
cb6f0a5f80 Enable custom request id generator (#881) 2017-03-17 09:22:58 -07:00
Vishal Rana
b2430fc4a8 Fixed #878
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-15 12:11:47 -07:00
Vishal Rana
477d8dc708 Fixed #839
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-15 11:38:43 -07:00
Vishal Rana
42e83ed0b9 Handle GET request with body
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-11 22:42:24 -08: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
023cc02cdd Merge branch 'master' of https://github.com/labstack/echo 2017-03-06 13:39:44 -08:00
Vishal Rana
0ae8ceb3eb Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-03-06 13:39:36 -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
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