()
| 117 | } |
| 118 | |
| 119 | func (w *StreamingResponseWriter) Close() error { |
| 120 | if !w.headerSent { |
| 121 | w.WriteHeader(http.StatusOK) |
| 122 | } |
| 123 | |
| 124 | if w.buffer.Len() > 0 { |
| 125 | w.sendChunk(w.buffer.Bytes()) |
| 126 | w.buffer.Reset() |
| 127 | } |
| 128 | return nil |
| 129 | } |
no test coverage detected