Skip to content

mime: ParseMedia fails to parse googleapis batch boundary #8532

@gopherbot

Description

@gopherbot

by sergiusens:

When using Google's batch API for GMail, the responses contain a ContentType that looks
like this:

multipart/mixed; boundary=batch_Qau-LYGqak0=_AApYZR4VvsU=

This fails to work with ParseMediaType with an error of

mime: invalid media parameter

Here's a playground example: http://play.golang.org/p/3p6UFZau34

Removing the '='s from the boundary lead to a successful parsing of the Content Type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions