Closed gopherbot closed 9 years ago
Google really sends that? That looks illegal. RFC 2045 says: content := "Content-Type" ":" type "/" subtype *(";" parameter) ; Matching of media type and subtype ; is ALWAYS case-insensitive. parameter := attribute "=" value attribute := token ; Matching of attributes ; is ALWAYS case-insensitive. value := token / quoted-string token := 1*<any (US-ASCII) CHAR except SPACE, CTLs, or tspecials> tspecials := "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> "/" / "[" / "]" / "?" / "=" ; Must be in quoted-string, ; to use within parameter values So looking at the boundary part in your example above, it's not quoted, so it's not a quoted string, which means it must be a token. But a token excludes tspecials, and "=" is a tspecial. Hence, invalid. Please demonstrate how Google sends this and I'll try to kick somebody to fix it.
Owner changed to @bradfitz.
Status changed to WaitingForReply.
Right, if google returned the boundary quoted, it would work fine: http://play.golang.org/p/ngT5gWKjWh Here's a short hackish example where I've included the response dump for when I run it: https://gist.github.com/sergiusens/7f75c3593710e1f40abc I used this as a guide https://developers.google.com/gmail/api/guides/batch
by sergiusens: