mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 02:32:17 +08:00
Merge branch 'master' into indent
This commit is contained in:
commit
c5a88b35c5
@ -582,7 +582,7 @@ func TestContextRenderIndentedJSON(t *testing.T) {
|
||||
c.IndentedJSON(201, H{"foo": "bar", "bar": "foo", "nested": H{"foo": "bar"}})
|
||||
|
||||
assert.Equal(t, w.Code, 201)
|
||||
assert.Equal(t, "{\n \"bar\":\"foo\",\n \"foo\":\"bar\",\n \"nested\":{\n \"foo\":\"bar\"\n }\n}", w.Body.String())
|
||||
assert.Equal(t, "{\n \"bar\": \"foo\",\n \"foo\": \"bar\",\n \"nested\": {\n \"foo\": \"bar\"\n }\n}", w.Body.String())
|
||||
assert.Equal(t, "application/json; charset=utf-8", w.HeaderMap.Get("Content-Type"))
|
||||
}
|
||||
|
||||
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
@ -34,10 +34,10 @@
|
||||
"revisionTime": "2017-06-01T23:02:30Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "YY//OXgGrJOsiR8Cz1xexk/zwkc=",
|
||||
"checksumSHA1": "bgb/lk2wroBJ5z+JI2xnVj7WkwI=",
|
||||
"path": "github.com/json-iterator/go",
|
||||
"revision": "37ba1b32b5ed52dfaff0fe50d923d210c11c8daf",
|
||||
"revisionTime": "2017-07-08T17:01:13Z"
|
||||
"revision": "845d8438db34cc782608bbee7647a522b4e87de0",
|
||||
"revisionTime": "2017-07-10T17:07:18Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "9if9IBLsxkarJ804NPWAzgskIAk=",
|
||||
|
Loading…
x
Reference in New Issue
Block a user