Skip to content

Commit

Permalink
Don't pass to https_request capture group by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Jan 6, 2024
1 parent fe6d50b commit 9caa415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ void cloud_drive_authenticate(cloud_drive_t* drive)
"&redirect_uri=http%3A//127.0.0.1%3A5000";
https_request(
http_request_e::POST, "https://oauth2.googleapis.com/token?" + query, "", {},
[drive, &refresh_path](const std::vector<uint8_t>& data) {
[drive, refresh_path](const std::vector<uint8_t>& data) {
if (!nlohmann::json::accept(data))
{
printf("[cloud] failed to authenticate: invalid response\n");
Expand Down

0 comments on commit 9caa415

Please sign in to comment.