(status int)
| 84 | } |
| 85 | |
| 86 | func (rw *notFoundBlockingResponseWriter) WriteHeader(status int) { |
| 87 | if status == http.StatusNotFound { |
| 88 | rw.status = status |
| 89 | return |
| 90 | } |
| 91 | rw.status = status |
| 92 | copyHeaders(rw.w.Header(), rw.headers) |
| 93 | rw.w.WriteHeader(status) |
| 94 | } |
| 95 | |
| 96 | func (rw *notFoundBlockingResponseWriter) Write(b []byte) (int, error) { |
| 97 | if rw.status == http.StatusNotFound { |
no test coverage detected