1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud.git synced 2025-03-09 23:18:50 +00:00
This commit is contained in:
atopilski 2023-05-09 22:45:01 -06:00
parent d65f3d0ca8
commit 1c7eee7472
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit af39e5a9911bfb603818f3c2d8816df0d06ba5c4
Subproject commit 87955c8e0ef311735b8305cc026c4d66942be3d8

View file

@ -60,10 +60,12 @@ namespace {
common::Error PostHttpOrHttpsFile(const common::file_system::ascii_file_string_path& file_path,
const common::uri::GURL& url) {
struct timeval tv = {1, 0};
const common::http::headers_t extra = {};
if (url.SchemeIs("http")) {
return common::net::PostHttpFile(file_path, url);
return common::net::PostHttpFile(file_path, url, extra, &tv);
}
return common::net::PostHttpsFile(file_path, url);
return common::net::PostHttpsFile(file_path, url, extra, &tv);
}
common::Optional<common::file_system::ascii_file_string_path> MakeStreamConfigJsonPath(