Bug: Binary static files being served incorrectly #15

Closed
paulbellamy opened this Issue Aug 27, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Owner

paulbellamy commented Aug 27, 2011

Symptom: Incorrect data is being served by mango.Static for binary files.

Possible cause: The mango.Body type is a string, so binary bytes are typecast to string in mango.Static.

Possible solution: Change mango.Body type to []byte

Owner

paulbellamy commented Aug 27, 2011

Bug in writing data to the ResponseWriter. No API changes needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment