diff --git a/multipartstreamer.go b/multipartstreamer.go index 26d8e85..c0041a8 100644 --- a/multipartstreamer.go +++ b/multipartstreamer.go @@ -27,7 +27,7 @@ type MultipartStreamer struct { // New initializes a new MultipartStreamer. func New() (m *MultipartStreamer) { - m = &MultipartStreamer{bodyBuffer: new(bytes.Buffer)} + m = &MultipartStreamer{bodyBuffer: new(bytes.Buffer), reader: bytes.NewReader(nil)} m.bodyWriter = multipart.NewWriter(m.bodyBuffer) boundary := m.bodyWriter.Boundary()