(p []byte)
| 316 | } |
| 317 | |
| 318 | func (cw *compressResponseWriter) Write(p []byte) (int, error) { |
| 319 | if !cw.wroteHeader { |
| 320 | cw.WriteHeader(http.StatusOK) |
| 321 | } |
| 322 | |
| 323 | return cw.writer().Write(p) |
| 324 | } |
| 325 | |
| 326 | func (cw *compressResponseWriter) writer() io.Writer { |
| 327 | if cw.compressible { |
nothing calls this directly
no test coverage detected