Skip to content

Commit 397e019

Browse files
Barthelemysawenzel
authored andcommitted
[O2-6625] Fix the missing filename in the CCDb
1 parent 587eb94 commit 397e019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCDB/src/CcdbApi.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ int CcdbApi::storeAsBinaryFile(const char* buffer, size_t size, const std::strin
416416
auto mime = curl_mime_init(curl);
417417
auto field = curl_mime_addpart(mime);
418418
curl_mime_name(field, "send");
419-
if (filename.empty()) {
419+
if (!filename.empty()) {
420420
curl_mime_filedata(field, filename.c_str());
421421
}
422422
if (buffer != nullptr && size > 0) {

0 commit comments

Comments
 (0)