mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
response error info
This commit is contained in:
parent
1717143301
commit
0a9b146d33
@ -495,6 +495,7 @@ func TestJSONErrorWrongContentLength(t *testing.T) {
|
|||||||
// catch c.JSON panic
|
// catch c.JSON panic
|
||||||
assert.Equal(t, err, http.ErrContentLength)
|
assert.Equal(t, err, http.ErrContentLength)
|
||||||
}
|
}
|
||||||
|
c.JSON(http.StatusInternalServerError, "internal error")
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
c.Next()
|
c.Next()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user