response error info

This commit is contained in:
lpxxn 2018-12-07 13:52:12 +08:00
parent 1717143301
commit 0a9b146d33

View File

@ -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()