Vishal Rana
e53d9c516f
Updated deps and fixed a typo
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-04-27 22:32:29 -07:00
Hylke Visser
69bd47b35f
Fix flushing in Gzip middleware ( #1317 )
...
* Make Gzip response Writer also call Flush of underlying Writer
* Add unit test for chunked responses with Gzip
2019-04-16 15:52:06 -05:00
Andrew Braunstein
e3717be4be
ensure that the TLS conifg contains the ALPN protocol ( #1305 )
2019-03-12 17:54:16 -07:00
atsushi-ishibashi
1f6cc362cc
Set subdomains to AllowOrigins with wildcard ( #1301 )
...
* Set subdomains to AllowOrigins with wildcard
* Create IsSubDomain
* Avoid panic when pattern length smaller than domain length
* Change names, improve formula
2019-03-09 10:32:49 -08:00
Helen Hood
5434a5392f
Enable adding preload
tag to HSTS header ( #1247 )
2019-03-06 10:22:19 -08:00
Hemachandar
08db4bd39b
simplify middleware chain creation ( #1299 )
2019-03-05 08:24:59 -08:00
Hemachandar
775b2eefec
Refactor DefaultProxyConfig Skipper & WebSocket Check in Context ( #1297 )
...
* refactor: default to DefaultProxyConfig.Skipper if not provided
* refactor: use strings library for websocket check
2019-03-02 10:43:23 -08:00
Kumar Harsh
802fb5bba6
feat(secure): support Content-Security-Policy-Report-Only header ( #1287 )
...
Closes #1283
2019-02-26 22:32:07 -08:00
Evgeniy Kulikov
17b5044459
Add go 1.12 to TravisCI ( #1294 )
2019-02-26 10:15:24 -08:00
Andrei Avram
be919e8f16
Increase Context tests coverage ( #1279 )
...
* Test context path.
* Test context handler.
* Test handler error.
* Text context validate.
* Test context query string.
* Test context undefined param.
* Test context request.
* Test context scheme.
* Test context is websocket.
* Test context multipart form params with error.
* Text context bind.
* Text context logger.
* Text context xml response write error.
* Test context real ip.
2019-02-19 10:18:42 -08:00
Ronald Bell
5aec1b234f
www redirects are too broad ( #1274 )
2019-02-15 09:56:58 -08:00
Mohamed Bana
8716acb0ab
Echo.StartTLS
: accept string
or []byte
as parameters. (#1277 )
...
If `certFile` or `keyFile` is `string` the values are treated as file paths.
If `certFile` or `keyFile` is `[]byte` the values are treated as the certificate or key as-is.
2019-02-15 09:51:54 -08:00
Andrei Avram
3d73323154
Use concurrency safe context by default. ( #1158 )
2019-02-12 10:56:26 -08:00
Evgeniy Kulikov
88965757af
Simplify code of Add/Remove trailing slash and fix bug ( #1275 )
...
* Simplify code of Add/Remove trailing slash
- simplify code (more informative / understanding)
- assert collides with imported package name (in tests)
- fix unhandled errors
* add tests for https://github.com/labstack/echo/pull/1275#issuecomment-460467700
2019-02-07 09:49:51 -08:00
Evgeniy Kulikov
bc28fceaf3
Fix unhandled errors ( #1271 )
2019-02-01 06:33:56 -08:00
Alex Ungur
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
Evgeniy Kulikov
282a44d4ad
Remove unreachable code ( #1254 )
...
`if` <-> `else if` <-> `else` has `return` and after `else` was `return`
2019-01-28 07:59:36 -08:00
Alex Ungur
0b714f3482
Bumped up the version
2019-01-28 17:43:48 +02:00
Alex Ungur
38772c686c
Removed go.mod and sum to help solve the issue with Go modules ( #1244 )
2019-01-28 16:12:53 +02:00
Alex Ungur
afe90e79d9
Bumped up version to include -dev
2019-01-27 00:44:28 +02:00
Alex Ungur
739700bf4e
Bumped up version to 3.3.9 (related to #1244 )
2019-01-27 00:39:45 +02:00
Vishal Rana
7867fce6ce
Changes related to #1199
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2019-01-14 10:56:17 -08:00
Evgeniy Kulikov
62145fad3e
[extend #1191 ] Unnecessary alloc for XML, JSON, JSONP ( #1199 )
...
* [extend #1191 ] Unnecessary alloc for XML, JSON, JSONP
* add legacy (JSON/JSONP/XML)Blob tests
* fix namings
* fix `jsonPBlob` allocs
* fix review comments (thx @alexaandru)
* fix review comments (thx @alexaandru)
add benchmarks
2019-01-14 10:12:22 -08:00
Shu Kutsuzawa
e6ac0023d2
Add golint to ci ( #1243 )
...
* add golint to travis ci
* fixed based on golint
* Update echo.go
2019-01-09 15:19:48 -08:00
Aimee LaPlant
2195bd3670
Updated comment. ( #1245 )
2019-01-09 15:15:33 -08:00
Charlie Bevis
1481763035
comment typo fix ( #1246 )
2019-01-09 15:14:26 -08:00
skrassiev
3f8b45c8d0
balance double-quotes in json ( #1232 )
2018-12-05 08:13:48 -08:00
Vishal Rana
a8de73efbe
Added probot-stale
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-11-29 16:28:21 -08:00
Vishal Rana
c54d9e8eed
Added user-agent to logger middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-11-22 22:34:14 -08:00
Vishal Rana
b37628bfc5
Updated ci
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-11-10 11:01:00 -08:00
Vishal Rana
ba46ff80a4
Using tls-alpn for auto tls
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-11-08 19:17:59 -08:00
Alexandru Ungur
ba1891b3dc
Add back exported HTTP method constants ( #1209 )
2018-10-15 13:01:26 +05:30
Geon Kim
82917fd848
Delete useless goto statements ( #1208 )
2018-10-15 09:12:43 +05:30
Emir Ribić
c8fd197fa8
Replace http constants with stdlib ones, i.e.: http.MethodGet instead of echo.GET ( #1205 )
2018-10-14 20:46:58 +05:30
Emir Ribić
059c099762
simplify tests ( #1206 )
2018-10-14 12:48:44 +05:30
Vishal Rana
ac1f40118a
Proxy rename descr to desc
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-10-13 11:43:05 +05:30
Gregor Noczinski
bc37a3a792
Proxy: Better errors + remote custom TLS ( #1197 )
...
Proxy will be more verbose on errors + possibility to configure custom transport (example: for custom TLS certificates)
2018-10-13 11:40:19 +05:30
Artyom Turkin
fcdf096c2c
extend proxy middleware. closes #1202 ( #1203 )
...
* extend proxy middleware. closes #1202
2018-10-09 09:13:39 +05:30
Shogo Nagasaka
af5c97715f
Fix node's parameter names assignment problem. ( #1201 )
2018-10-07 08:34:30 +05:30
Sukma Setyaji
0d93bdd2b5
Add common error variable ( #1200 )
2018-10-07 07:38:24 +05:30
Rsy
036e6961ae
the logging interface add SetHeader method ( #1092 )
2018-09-28 10:47:23 -07:00
Thuc Le
f7470482fe
Support internal error when Bind() data #888 ( #1164 )
2018-09-28 10:41:13 -07:00
Sukma Setyaji
eb84122d4e
Add error variable for too many request ( #1181 )
...
* add error variable for too many request
* update errTooManyRequests
2018-09-28 10:28:03 -07:00
Bertram Truong
1ae109c688
Expose stdLogger ( #1196 )
2018-09-28 10:09:35 -07:00
Emir Ribić
a2d4cb9c7a
Simplify REALIP method ( #1193 )
...
* Simplify REALIP method
* Remove alloc
2018-09-19 10:18:50 -07:00
Evgeniy Kulikov
c185ebd0de
Update dependencies ( #1194 )
...
* Update go.mod
Replace:
`github.com/labstack/gommon v0.0.0-20180312174116-6fe1405d73ec`
With:
`github.com/labstack/gommon v0.2.7`
* Update Gopkg
Replace:
`github.com/labstack/gommon 0.2.4`
With:
`github.com/labstack/gommon v0.2.7`
* Update go/dep 0.5.0
2018-09-14 07:46:40 -07:00
Emir Ribić
688ab2bec6
Remove unecessery if-s and else-s ( #1189 )
2018-09-07 07:58:04 -07:00
Geon Kim
54d5613aa2
Add go.mod for Go modules ( #1187 )
...
* Add go.mod
* Resolve problem
2018-09-04 08:07:41 -07:00
Vishal Rana
90822319eb
Fixed test
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-08-28 20:49:22 -07:00
takaya kusanagi
31e795315a
change getting method point after overriding method in premiddleware ( #1182 )
2018-08-28 18:50:58 -07:00