aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tools/http_upload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/http_upload.c b/src/tools/http_upload.c
index 17eca188..d1360b46 100644
--- a/src/tools/http_upload.c
+++ b/src/tools/http_upload.c
@@ -194,7 +194,7 @@ http_file_put(void* userdata)
struct curl_slist* headers = NULL;
content_type_header = g_strdup_printf("Content-Type: %s", upload->mime_type);
- if (content_type_header) {
+ if (!content_type_header) {
content_type_header = g_strdup(FALLBACK_CONTENTTYPE_HEADER);
}
headers = curl_slist_append(headers, content_type_header);