You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I think I found a bug: when a response has a content-type header with multiple parameters (e.g. "text/xml;charset=utf-8;foo=bar"), then content(response) throws a somewhat cryptic error. I don't think its common to have more than one parameter (usually just charset), but as far as I know it's not illegal to have multiple parameters.
I ultimately figured out this is due to the version of str_split_fixed() that is included within httr not being vectorized (as indicated by the comment at the top of str.R). So parse_media() removes the MIME type, then tries to split each of the two parameters at = but fails because str_split_fixed() is not vectorized and thus expects the input to be a character vector of length 1. In other words: