Accept headers can contain multiple types, e.g., "application/json, text/plain", but accept() previously produced a warning (because if (substr(type, 1, 1) == ".") is non-scalar) on vector arguments with length > 1
httr has been superseded in favour of httr2, so is no longer under active development. Thanks for using httr, thanks for contributing, and my apologies that your contribution never made it into the package.
Accept
headers can contain multiple types, e.g.,"application/json, text/plain"
, butaccept()
previously produced a warning (becauseif (substr(type, 1, 1) == ".")
is non-scalar) on vector arguments with length > 1