You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var params struct {
/* some structure def */
}
json.NewDecoder(req.Body).Decode(¶ms)
// use `params`, without checking for bad JSON formatting, non-JSON input, etc.
We should handle errors from the JSON decoder, as 400 Bad Requests.
The text was updated successfully, but these errors were encountered:
We have code like this all over:
We should handle errors from the JSON decoder, as 400 Bad Requests.
The text was updated successfully, but these errors were encountered: