田欧
1c37d162f3
Update json.go
2019-01-20 17:39:40 +08:00
田欧
456391692c
Update json.go
2019-01-20 17:39:10 +08:00
田欧
b90df5cb17
Update json.go
2019-01-20 17:37:52 +08:00
田欧
27c2eb81eb
Merge branch 'master' into master
2019-01-20 17:36:07 +08:00
Sai
b4f5155982
Fix not to pass formatted string to Fprintf's format specifier parameter ( #1747 )
2019-01-20 08:39:09 +08:00
Dmitry Kutakov
4867ff9634
fix Context.Next() - recheck len of handlers every iteration ( #1745 )
...
* fix Context.Next() - recheck len of handlers every iteration
* add tests when Context.reset() can be called inside of handler
TestEngineHandleContext
TestContextResetInHandler
TestRouterStaticFSFileNotFound
* Context.Next() - format to while style
2019-01-18 09:57:06 +08:00
Dmitry Kutakov
b056a34bdc
fix errcheck warnings ( #1739 )
2019-01-18 09:32:53 +08:00
thinkerou
29a145c85d
Revert "context: inherits context cancelation and deadline from http.Request context for Go>=1.7 ( #1690 )" ( #1736 )
...
This reverts commit f67d7a90c4d2e5bdf310a78d7e6a04e3d9aee851.
2019-01-09 09:32:44 +08:00
李鹏
10564061ae
Merge branch 'master' into master
2019-01-03 11:34:18 +08:00
John Bampton
d8fb18c33b
Fix case of GitHub ( #1726 )
2018-12-31 09:02:53 +08:00
Bo-Yi Wu
85b92cdf4b
chore(testing): case sensitive for query string ( #1720 )
...
fix #1692
2018-12-29 11:46:26 +08:00
Dmitry Kutakov
807368579f
fix test - auto choose port number ( #1719 )
2018-12-28 10:26:29 +08:00
Dmitry Kutakov
49e4b0c60c
fix mapping inner structs with correct tag ( #1718 )
2018-12-28 09:57:09 +08:00
thinkerou
0bfc9cbcdb
ci: exit 1 when build fail ( #1695 )
...
Like this:
```
FAIL github.com/gin-gonic/gin [build failed]
```
2018-12-26 00:27:46 +08:00
thinkerou
1b34e8e8de
chore: attemp to fix #1700 ( #1707 )
2018-12-25 23:40:11 +08:00
Sai
2d33c82028
Add comment to LogFormatterParams struct's fields ( #1711 )
...
By https://github.com/gin-gonic/gin/issues/1701 , I thought it's necessary.
2018-12-25 23:27:24 +08:00
Sai
678e09c736
Plural is "Paths", not "Pathes" ( #1706 )
2018-12-20 17:54:08 +08:00
李鹏
9bb10fed43
Merge branch 'master' into master
2018-12-17 16:59:02 +08:00
Ganlv
1542eff27f
Fix #1693 : file.Filename should not be trusted ( #1699 )
2018-12-17 08:13:07 +08:00
Romain Beuque
f67d7a90c4
context: inherits context cancelation and deadline from http.Request context for Go>=1.7 ( #1690 )
...
*gin.Context implements standard context.Context methods, but always
returns data as context is still valid. Since Go 1.7, http.Request now
contains a context.Context object, which can be controlled by the
http.Server to indicates that the context is now closed, and persue of
request should be canceled.
This implements the propagation of http.Request context methods inside
gin.Context to have HTTP context cancelation information at gin.Context
level.
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2018-12-13 11:20:17 +08:00
thinkerou
59695e7ba8
Add BindUri ( #1694 )
...
* add BindUri
* fix bug
* fix code style
2018-12-12 23:40:29 +08:00
Sai
f76ccb25f1
Add LoggerWithFormatter method ( #1677 )
...
* Add LoggerWithFormatter
* Add tests for LoggerWithFormatter & LoggerWithConfig
* Add note for README
* Add tests for DefaultLogFormatter
* Add comment
* Change DefaultLogFormatter to a private method
2018-12-12 09:05:16 +08:00
lpxxn
0a9b146d33
response error info
2018-12-07 13:52:12 +08:00
李鹏
1717143301
Merge branch 'master' into master
2018-12-06 14:49:12 +08:00
thinkerou
cce49582d6
ci: break when test fail ( #1671 )
2018-12-05 13:49:03 +08:00
thinkerou
98c7ac7202
fix bug ( #1682 )
2018-12-05 13:36:49 +08:00
李鹏
7b58022f27
Merge branch 'master' into master
2018-12-05 12:07:26 +08:00
thinkerou
f463d847c2
chore: fix test fail ( #1669 )
...
* chore: fix test fail
* fix binduri test fail
2018-12-05 05:58:35 +08:00
thinkerou
54e9610400
chore: remove wercker yml file ( #1676 )
...
Now the `wercker.yml` have no longer used.
2018-12-05 02:02:03 +08:00
李鹏
4fb7739ba2
Merge branch 'master' into master
2018-11-27 14:02:33 +08:00
MetalBreaker
b97ccf3a43
Router: Route StaticFS() not found to Router's NoRoute() ( #1663 )
...
Closes #1220
2018-11-26 23:01:51 +08:00
thinkerou
149ef75cdd
doc: remove README_ZH.md ( #1667 )
2018-11-26 21:05:54 +08:00
lpxxn
152fd8ca1a
rename test function name
2018-11-26 11:29:36 +08:00
lpxxn
b1d09359f0
fmt code
2018-11-26 11:24:29 +08:00
lpxxn
6404d8d7b5
test wrong content-Length panic
2018-11-26 11:14:21 +08:00
李鹏
cb61c8ce15
Merge branch 'master' into master
2018-11-26 10:39:36 +08:00
weibaohui
465ead47d0
doc: update README_ZH.md ( #1659 )
2018-11-25 21:18:00 +08:00
thinkerou
687d8b9ac6
add picfit to gin user list ( #1661 )
...
agreed with the project's author.
cc @thoas
thanks!
2018-11-25 20:52:46 +08:00
thinkerou
331af2219c
add krakend to gin user list ( #1658 )
2018-11-24 13:49:26 +01:00
weibaohui
f52bea87f6
调整描述语句 ( #1657 )
...
调整描述语句
2018-11-24 19:15:19 +08:00
李鹏
a0fcaa08f8
Merge branch 'master' into master
2018-11-24 16:13:55 +08:00
尹宝强
1f576fb27c
修改连接错误,修正一些报引用错误 ( #1655 )
...
修复了全角括号导致超链接不能正常访问的错误。
修复了一些URL中的"/"被改成" / "的错误。
修复了一些包引用中"/"被改成" / "的错误。
修复有超链接被翻译成中文的错误。
2018-11-23 09:46:41 +08:00
long-road
6053156eed
add chinese docs ( #1588 )
2018-11-22 23:42:41 +08:00
mllu
64457fbca7
handle nil body for JSON binding ( #1638 )
2018-11-22 09:55:51 +08:00
thinkerou
521d06c81d
support bind uri param ( #1612 )
...
* support bind uri (1)
* uri binding successful run
* fix vet warning: github.com/gin-gonic/gin/internal.Param composite literal uses unkeyed fields
* fix code style
* update function name
* fix test function signature
* add test for CanSet
* update readme and add test case
* remove internal.Params
* add coverage
* fix warning
2018-11-22 09:29:48 +08:00
thinkerou
7ec82ee894
recovery: fix issue about syscall import on google app engine ( #1640 )
...
* recovery: fix issue about syscall import on google app engine
* add ToLower()
* the whole error message
2018-11-22 09:17:44 +08:00
henrylee2cn
3d44ff82a1
Make sure the debug log contains line breaks ( #1650 )
...
Many debug logs have no line breaks, so fix them here.
- With pull requests:
- Open your pull request against `master`
- Your pull request should have no more than two commits, if not you should squash them.
- It should pass all tests in the available continuous integrations systems such as TravisCI.
- You should add/modify tests to cover your proposed code changes.
- If your pull request contains a new feature, please document it on the README.
2018-11-22 09:07:00 +08:00
lpxxn
6fecbdff2a
WriteJSON check response write error
2018-11-20 16:29:14 +08:00
Sai
d6b2c13b18
Fix typo ( #1641 )
2018-11-12 18:58:24 +08:00
Justin Israel
37854ee10f
Fix panic stack trace being printed during recovery of broken pipe ( #1089 ) ( #1259 )
2018-11-06 13:40:20 +08:00