New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential bug in parse_single_header()
#162
Comments
As you can see on the first line below the response header seems to be missing the message (.e.g,
So on line https://github.com/hadley/httr/blob/master/R/perform.R#L76 the vector split out returns list of length 2 as.list(strsplit(lines[1], "\\s+")[[1]]) [[1]]
[1] "HTTP/1.1"
[[2]]
[1] "200" instead of length 3. And then the names assignment https://github.com/hadley/httr/blob/master/R/perform.R#L77 fails. I don't know you think this is simply a problem for the API provider to fix, or if you thin you could handle this case in |
Some Apache background to this https://issues.apache.org/bugzilla/show_bug.cgi?id=54946 |
thanks @hadley |
I'm getting an error with
parse_single_header()
at this line https://github.com/hadley/httr/blob/master/R/perform.R#L77Here's the call that causes it on my machine:
This call works fine with curl on the cli, or
RCurl
. I'm guessing that I'm doing something stupid here.The text was updated successfully, but these errors were encountered: