Skip to content

Commit

Permalink
disable validate certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
chinosk6 committed May 4, 2024
1 parent 5324b6a commit 9e04fba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/requestConvert/request_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace request_convert

web::http::http_response send_post(std::wstring url, std::wstring path, std::wstring data, int timeout) {
web::http::client::http_client_config cfg;
cfg.set_validate_certificates(false);
cfg.set_timeout(utility::seconds(timeout));
web::http::client::http_client client(url, cfg);
return client.request(web::http::methods::POST, path, data).get();
Expand Down

0 comments on commit 9e04fba

Please sign in to comment.