Commit Graph
100 Commits
Author SHA1 Message Date
Vishal Rana 03efe4d61b Closes #525, closes #566, closes #573 (#653)
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-09 15:30:46 -07:00
Vishal Rana 00699ed0db Renamed Context#Context => Context#StdContext & Context#SetContext to ContextSetStdContext, 2d772e02ca
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-09 11:47:43 -07:00
Vishal Rana 2d772e02ca Updated deps, removed Context#Context()
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-08 14:54:07 -07:00
Vishal Rana 2b0071df02 Update README.md 2016-09-07 17:21:27 -07:00
Vishal Rana e980bd9055 Closes #647
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-07 12:18:57 -07:00
Vishal Rana 65b60a4ed2 Update README.md 2016-09-06 22:09:51 -07:00
Vishal Rana ed3971d47a Update README.md 2016-09-06 19:41:05 -07:00
Vishal Rana dd9693fc4d Merge branch 'master' of https://github.com/labstack/echo 2016-09-05 10:20:19 -07:00
Vishal Rana 4850d69c30 Fixed basic-auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-09-05 10:20:10 -07:00
Vishal Rana 025c53d4cf Update README.md 2016-09-01 08:55:27 -07:00
Vishal Rana 245c05330a Redirect middleware docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-31 22:15:26 -07:00
Vishal Rana 3d9d408365 Options for redirect middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-31 20:10:14 -07:00
Vishal Rana ab7885d303 Update ISSUE_TEMPLATE.md 2016-08-29 13:45:46 -07:00
Vishal Rana 86ae297e23 New redirect middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-27 13:03:40 -07:00
Vishal Rana 6dab126f64 Fixed godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-27 10:58:33 -07:00
Vishal Rana bc7b992d23 Dropped custom error handler for jwt, closes #589, closes ##591
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-27 10:54:51 -07:00
Vishal Rana 4187265fa4 Merge branch 'master' of https://github.com/labstack/echo 2016-08-22 14:47:54 -07:00
Vishal Rana b8f8d756c7 Use response adapter in engine/standard
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-22 14:47:48 -07:00
Vishal Rana 6fd725c953 Merge branch 'k2wanko-fix-set-context't push origin master 2016-08-22 08:31:21 -07:00
Vishal Rana 85e2816cf3 Minor formatting/changes
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-22 08:30:46 -07:00
Vishal Rana 98061d3ce3 Closes #633
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-21 09:52:20 -07:00
Vishal Rana 87dbea59f7 Minor refactor and format
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-20 09:35:19 -07:00
Vishal Rana ad8f0dd012 Closes #626, #625
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-19 14:07:07 -07:00
Vishal Rana 5c54ab4e23 Updated deps
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-19 08:19:35 -07:00
Vishal Rana b939bee425 Fixed engine tests
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-18 11:43:57 -07:00
Vishal Rana 18b9e23ace Closes #364
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-18 11:27:37 -07:00
Vishal Rana 7fa42ab978 Removed unwanted import #629
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-18 08:00:40 -07:00
Vishal Rana a709ca8483 Merge branch 'ipfans-master' 2016-08-17 20:40:13 -07:00
Vishal Rana 0d9c817371 Fixed godoc for RealIP funtion
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-17 20:39:52 -07:00
Vishal Rana 7065c3c839 Merge branch 'master' of https://github.com/ipfans/echo into ipfans-master 2016-08-17 20:35:42 -07:00
Vishal Rana 3cf6551ef6 Update .travis.yml 2016-08-17 11:08:40 -04:00
Vishal Rana e918eacd9d Fixed #622
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-11 16:25:03 -07:00
Vishal Rana 50fed083a7 Fixed #608
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-08-02 13:11:12 -07:00
Vishal Rana 8fc833b4d5 Update README.md 2016-07-27 11:20:09 -07:00
Vishal Rana 27f9b326b8 Ability to skip a middleware via callback
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-27 09:34:44 -07:00
Vishal Rana eb48e7de60 Revert "fixed #604"
This reverts commit 69e8c1e717.
2016-07-27 09:11:34 -07:00
Vishal Rana b23e7c090a Revert "Revert "closes #605", closes #606"
This reverts commit a75cbc85f8.
2016-07-27 09:11:18 -07:00
Vishal Rana a75cbc85f8 Revert "closes #605", closes #606
This reverts commit eed456ee87.
2016-07-27 09:04:41 -07:00
Vishal Rana eed456ee87 closes #605
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-26 10:06:14 -07:00
Vishal Rana 69e8c1e717 fixed #604
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-26 09:58:21 -07:00
Vishal Rana 579cb79a41 Using random string from gommon
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-18 23:24:50 -07:00
Vishal Rana 0dab439ea4 Fixed #600
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-16 20:13:27 -07:00
Vishal Rana c1358eda73 Generate CSRF token only if it is expired (#601)
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-16 10:22:24 -07:00
Vishal Rana 4d8557c491 Update README.md 2016-07-14 09:35:56 -07:00
Vishal Rana 98d744b8fb Fixed #597 (#598)
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-13 16:55:46 -07:00
Vishal Rana 451b2ccc9f Exposed error handlers
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-05 08:43:46 -07:00
Vishal Rana c00d017178 Fixed #587
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-29 12:14:28 -07:00
Vishal Rana d119b3bbfa Fixed #584
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-28 17:38:12 -07:00
Vishal Rana 08e08a00ea Update README.md 2016-06-25 18:33:03 -07:00
Vishal Rana fa80ead5e2 Closes #576
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-21 14:50:57 -07:00
Vishal Rana fbcdf70c52 Update JWT lib to v3
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-16 14:40:43 -07:00
Vishal Rana 2fab27a378 Refactor tls config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-16 14:25:32 -07:00
Vishal Rana 1ca76e5e88 Using read/write timeout in server config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-15 18:05:48 -07:00
Vishal Rana 77b3e703be Updated gommon/log
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-11 08:13:49 -07:00
Vishal Rana a004403b11 Fixed broken build
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-09 09:08:29 -07:00
Vishal Rana aea64ed5e5 Fixed #556
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-09 08:41:50 -07:00
Vishal Rana f4088cf594 Added JSON logging
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-08 17:16:03 -07:00
Vishal Rana 6783909459 Update README.md 2016-06-08 08:08:48 -07:00
Vishal Rana aeee1d87d0 Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-07 20:24:24 -07:00
Vishal Rana f96f40b5e6 More coverage on engine/...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-07 17:08:13 -07:00
Vishal Rana c654c422c4 More coverage and better response adapter for standard/response
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-06 22:27:36 -07:00
Vishal Rana 4e98fa9664 Fixed #500
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-06 09:47:22 -07:00
Vishal Rana d0ed5830c4 Test coverage for cookie.go and context.go
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-05 22:25:34 -07:00
Vishal Rana 09a2ce60a6 About context #500
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-05 13:47:59 -07:00
Vishal Rana 74c8e254ff Fixed docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-05 10:29:23 -07:00
Vishal Rana 9f23055745 Create ISSUE_TEMPLATE.md 2016-06-04 16:42:29 -07:00
Vishal Rana 02f12767fd Response#Write wites head in case it is not written
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-03 07:56:16 -07:00
Vishal Rana 98a822e8d7 Merge pull request #539 from o1egl/patch1
Query params and router tests fix
2016-06-03 07:22:39 -07:00
Vishal Rana ad06aee0c1 Merge pull request #543 from olliephillips/master
For consistency, added additional header constant for 'Allow' named '…
2016-06-02 15:25:20 -07:00
Vishal Rana 0d2dac7532 Fixed #536
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-31 20:59:52 -07:00
Vishal Rana f3ff6a1d10 Merge pull request #535 from ansel1/master
fix index out of bounds if path is empty
2016-05-31 19:19:06 -07:00
Vishal Rana a98843b6e5 Logger as interface, fixed #533, fixed #349, fixed #304
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-31 18:29:11 -07:00
Vishal Rana 3e04718bf4 Merge pull request #532 from 0x616E676572/add_cors_method
Add PATCH to default allowed methods
2016-05-31 07:49:48 -07:00
Vishal Rana f73681b918 Merge pull request #529 from olliephillips/master
Middleware links to correct URI on echo.labstack.com
2016-05-29 14:19:39 -07:00
Vishal Rana 23eb4f87db API to define a custom logger
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-29 08:34:44 -07:00
Vishal Rana e7518f5aca Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-28 11:39:03 -07:00
Vishal Rana dc244c173d Minor fix in jwt and csrf middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-26 19:23:46 -07:00
Vishal Rana 7e52ad4dd5 Changes to jwt and csrf middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-26 14:08:02 -07:00
Vishal Rana 7a66f226f2 Changed website url
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-24 14:51:26 -07:00
Vishal Rana b8c52b0432 Default config for static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-23 11:31:25 -07:00
Vishal Rana 08a173b476 Enhanced body-limit middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-23 11:23:15 -07:00
Vishal Rana 96898d5b9b Merge pull request #521 from 0x616E676572/fix-1
Fix endless loop
2016-05-22 16:15:29 -07:00
Vishal Rana ecb021f830 HTML5 mode in static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-22 10:21:19 -07:00
Vishal Rana c24f06e7cb Fixed #520
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-22 08:45:36 -07:00
Vishal Rana 702e6d0967 Closes #517, closes #518
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-22 07:58:21 -07:00
Vishal Rana 795ab0ad77 Error handler now printing error messages
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-19 08:30:20 -07:00
Vishal Rana c6b32d5541 Added json tags to middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-18 18:53:54 -07:00
Vishal Rana 52a5dcf3cf Update README.md 2016-05-13 18:55:00 -07:00
Vishal Rana 7d1819e5b1 Extractor for csrf token
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-13 08:18:00 -07:00
Vishal Rana 1aa22ce09b Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-12 18:14:00 -07:00
Vishal Rana 98dd8bf9e9 Added CSRF middleware, #341.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-12 17:45:00 -07:00
Vishal Rana 1afaa6ec0b Updated docs, changes to static middleware config
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-10 11:52:04 -07:00
Vishal Rana 799c6cff2a Upgraded gommon
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-10 08:59:55 -07:00
Vishal Rana c4d6f16fc4 More tags in logger middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-10 07:57:35 -07:00
Vishal Rana 6b55156cb6 Fixed build
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-09 19:19:53 -07:00
Vishal Rana ef1d00349e Fixed #505
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-09 19:13:02 -07:00
Vishal Rana e943ed24be JWTAuth to JWT
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-07 07:45:03 -07:00
Vishal Rana 37f05202e8 Added cookie.go
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-06 07:39:41 -07:00
Vishal Rana 986338c805 Update README
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-04 23:33:05 -07:00
Vishal Rana 682a5580b7 Deprecated Echo#GetContext() => Echo#AcquireContext(), Echo#PutContext() => Echo#ReleaseContext()
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-03 17:23:31 -07:00