some report card feedback.

This commit is contained in:
Will Charczuk 2016-07-15 13:40:24 -07:00
parent f8573f1123
commit 1c6df58320
3 changed files with 15 additions and 5 deletions

View file

@ -215,6 +215,9 @@ func boxHandler(rc *web.RequestContext) web.ControllerResult {
rc.Response.Header().Set("Content-Type", "image/png")
buffer := bytes.NewBuffer([]byte{})
err = r.Save(buffer)
if err != nil {
return rc.API().InternalError(err)
}
return rc.Raw(buffer.Bytes())
}