Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't panic when failed to render or write JSON #3390

Closed

Commits on Nov 7, 2022

  1. Don't panic when failed to render or write JSON

    Currently, gin will panic if failed to write JSON to client and it's
    unnecessary for most scenarios. Because most of them are caused by
    network error like connection reset or timeout, it'd be better to
    retrieve an error instead of panic.
    git-hulk committed Nov 7, 2022
    Copy the full SHA
    b768261 View commit details
    Browse the repository at this point in the history