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
httr no longer uses the RCurl package. Instead it uses the curl package,
a modern binding to libcurl written by Jeroen Ooms (#172). This should make
httr more reliable and prevent the "easy handle already used in multi handle"
error. This change shouldn't affect any code that uses httr - all the changes
have happened behind the scenes.
The oauth_listener can now listen on a custom IP address and port (the
previously hardwired ip:port of 127.0.0.1:1410 is now just the default).
This permits authentication to work under other settings, such as inside
docker containers (which require localhost uses 0.0.0.0 instead). To
configure, set the system environmental variables HTTR_LOCALHOST and HTTR_PORT respectively (@cboettig, #211).
POST(encode = 'json') now automatically turns length-1 vectors into json
scalars. To prevent this automatic "unboxing", wrap the vector in I()
(#187).
POST(), PUT() and PATCH() now drop NULL body elements. This is
convenient and consistent with the behaviour for url query params.
Minor improvements and bug fixes
cookies argument to handle() is deprecated - cookies are always
turned on by default.
brew_dr() has been renamed to httr_dr() - that's what it should've
been in the first place!
content(type = "text") compares encodings in a case-insensitive manner
(#209).
context(type = "auto") uses a better strategy for text based formats (#209).
This should allow the encoding argument to work more reliably.