Skip to content

Commit

Permalink
Merge pull request #252 from jeroenooms/progress
Browse files Browse the repository at this point in the history
Fix for default progress function
  • Loading branch information
hadley committed Jun 26, 2015
2 parents d2b05be + ab77c9b commit d9395f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# httr 1.0.0.9000

* fix for 'progress callback must return boolean' warning

# httr 1.0.0

* httr no longer uses the RCurl package. Instead it uses the curl package,
Expand Down
4 changes: 2 additions & 2 deletions R/progress.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ progress_bar <- function(type) {
if (total == 0 && now == 0) {
bar <<- NULL
first <<- TRUE
return()
return(TRUE)
}

if (total == 0) {
Expand All @@ -53,7 +53,7 @@ progress_bar <- function(type) {
setTxtProgressBar(bar, now)
}

0L
TRUE
}

show_progress
Expand Down

0 comments on commit d9395f2

Please sign in to comment.