all repos — homestead @ 65039b065ba634b9c4b4c7f4b42ebccdbfd40ce0

Code for my website

remove buffers in file writer

Alan Pearce
commit

65039b065ba634b9c4b4c7f4b42ebccdbfd40ce0

parent

f7d8beffaa09ecf863996d29c72f508eb3952c84

1 file changed, 2 insertions(+), 3 deletions(-)

changed files
M domain/web/mux.godomain/web/mux.go
@@ -68,10 +68,9 @@ enc := nego.NegotiateContentEncoding(r, file.AvailableEncodings()...)
if enc != "" { w.Header().Add("Content-Encoding", enc) } - mime := file.GetContentType() - w.Header().Add("Content-Type", mime) + w.Header().Add("Content-Type", file.ContentType) - if mime == "application/xml" { + if file.ContentType == "application/xml" { for k, v := range feedHeaders { w.Header().Add(k, v) }