Skip to content

Commit

Permalink
Only supress caching if credentials supplied
Browse files Browse the repository at this point in the history
Fixes r-lib#475
  • Loading branch information
hadley committed Aug 18, 2017
1 parent 16dbc07 commit 8608fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# httr 1.3.0.9000

* Re-enable on-disk caching (accidentally disabled in #457) (#475)

# httr 1.3.0

## API changes
Expand Down
2 changes: 1 addition & 1 deletion R/oauth-token.r
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ oauth2.0_token <- function(endpoint, app, scope = NULL, user_params = NULL,
endpoint = endpoint,
params = params,
credentials = credentials,
cache_path = FALSE
cache_path = if (is.null(credentials)) cache else FALSE
)
}

Expand Down

0 comments on commit 8608fca

Please sign in to comment.