Skip to content

mime/multipart/partReader ignores first EOF it reads and fails if next Read call returns another error #14676

@AsamK

Description

@AsamK
  1. What version of Go are you using (go version)?
    go1.6
  2. What operating system and processor architecture are you using (go env)?
    linux/amd64
  3. What did you do?
    https://play.golang.org/p/ePzW9GtCEe
  4. What did you expect to see?
    the multipart reader should correctly read the multipart content
  5. What did you see instead?
    ReadForm() fails with "multipart: Part Read: unexpected EOF"

This worked in go1.5 and fails in go1.6 because of a change in the zlib reader (see #14675)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions