(w http.ResponseWriter)
| 73 | } |
| 74 | |
| 75 | func (r CustomEvent) WriteContentType(w http.ResponseWriter) { |
| 76 | header := w.Header() |
| 77 | header["Content-Type"] = contentType |
| 78 | |
| 79 | if _, exist := header["Cache-Control"]; !exist { |
| 80 | header["Cache-Control"] = noCache |
| 81 | } |
| 82 | } |