Closed FlukeAndFeather closed 2 years ago
I just noticed I forgot to remove the .Rproj file from the commit. I assume you don't want that in there? If so I'll remove it.
thanks @FlukeAndFeather - yes, please remove the .Rproj file
.Rproj removed and crul.Rproj added to .gitignore to prevent something similar in the future.
The ubuntu failed check doesn't seem related to this pull request. Based on the message below, I think the version tag was deprecated or something.
Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'ubuntu-16.04' Waiting for a self-hosted runner to pickup this job...
Thanks! Yeah no worries about the checks - i'll fix it later
heads up, i still need to have a detailed look at this, hopefully soon
Thanks, looks good.
Description
Previous functionality: assume headers are UTF-8 encoded. New functionality: check if UTF-8 encoding is valid. If not, try Latin-1. If still not, throw an error specifying the issue.
Related Issue
Fixes #163
Example
Doesn't add features or change behavior; only a bug fix.
Re: tests, I don't know how to make a request that returns Latin-1 encoding in the header besides using
rcrossref
functions (see #163), which doesn't seem like it translates directly to a test. Sorry!