These are chat archives for gin-gonic/gin

May 2015
Nick K
May 03 2015 11:37
Anyone knows how do I output raw text to user via io.Writer?...
Like, I've got csv object I want to output
Oh, just c.Writer works
But the content-type? :S
Nick K
May 03 2015 11:51
if anyone stumbles upon the question: for current stable it's
    c.Writer.Header().Set("Content-Type", "text/csv; charset=utf-8")
    c.Writer.Header().Set("Content-Disposition", "attachment; filename=report.csv")
is there any wiki where i could put that? ^^