diff --git a/stream_reader.go b/stream_reader.go index d174125..4210a19 100644 --- a/stream_reader.go +++ b/stream_reader.go @@ -108,6 +108,6 @@ func (stream *streamReader[T]) unmarshalError() (errResp *ErrorResponse) { return } -func (stream *streamReader[T]) Close() { - stream.response.Body.Close() +func (stream *streamReader[T]) Close() error { + return stream.response.Body.Close() }