These are chat archives for gin-gonic/gin

3rd
May 2015
Nick K
@utrack
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
@utrack
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")
    c.Writer.WriteHeader(200)
is there any wiki where i could put that? ^^