WriteHeader sends an HTTP response header with the provided status code.
(code int)
| 146 | // WriteHeader sends an HTTP response header with the provided |
| 147 | // status code. |
| 148 | func (w *gzipResponseWriter) WriteHeader(code int) { |
| 149 | if code == http.StatusNoContent { // Issue #489 |
| 150 | w.ResponseWriter.Header().Del(HeaderContentEncoding) |
| 151 | } |
| 152 | w.ResponseWriter.WriteHeader(code) |
| 153 | } |
| 154 | |
| 155 | // Write do write data |
| 156 | func (w *gzipResponseWriter) Write(b []byte) (int, error) { |
nothing calls this directly
no test coverage detected