sendgrid/sendgrid-go — pull request #13 by deckarep (2014-05-31 17:00:14+00:00)
Title: Make sure to defer the closing of the body

Hello, I just noticed this detail: The way the code currently was, if the PostForm successfully goes through and the http status == http.StatusOK, then you early return nil. This means the r.Body.Close() never ran in the successful case.