mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 01:12:16 +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
|
||||
assert.Equal(t, err, http.ErrContentLength)
|
||||
}
|
||||
c.JSON(http.StatusInternalServerError, "internal error")
|
||||
wg.Done()
|
||||
}()
|
||||
c.Next()
|
||||
|
Loading…
x
Reference in New Issue
Block a user