server : fix bad fmt, size() is a size_type (#17735)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
parent
083e18b11c
commit
1257491047
|
|
@ -791,7 +791,7 @@ static void handle_media(
|
||||||
SRV_INF("downloading image from '%s'\n", url.c_str());
|
SRV_INF("downloading image from '%s'\n", url.c_str());
|
||||||
auto res = common_remote_get_content(url, params);
|
auto res = common_remote_get_content(url, params);
|
||||||
if (200 <= res.first && res.first < 300) {
|
if (200 <= res.first && res.first < 300) {
|
||||||
SRV_INF("downloaded %ld bytes\n", res.second.size());
|
SRV_INF("downloaded %zu bytes\n", res.second.size());
|
||||||
raw_buffer data;
|
raw_buffer data;
|
||||||
data.insert(data.end(), res.second.begin(), res.second.end());
|
data.insert(data.end(), res.second.begin(), res.second.end());
|
||||||
out_files.push_back(data);
|
out_files.push_back(data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue