Skip to content

Commit

Permalink
fix download api call (forgot to update var)
Browse files Browse the repository at this point in the history
also added space at the end of callback.h file
  • Loading branch information
ITotalJustice committed Aug 9, 2020
1 parent 74a8513 commit 36938a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cpr/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ template <typename... Ts>
Response Download(const WriteCallback& write, Ts&&... ts) {
Session session;
priv::set_option(session, std::forward<Ts>(ts)...);
return session.Download(file);
return session.Download(write);
}

} // namespace cpr
Expand Down
2 changes: 1 addition & 1 deletion include/cpr/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ class ProgressCallback {

} // namespace cpr

#endif
#endif

0 comments on commit 36938a6

Please sign in to comment.