mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
http upload: use correct content type
This bug was introduced in 1ec606540e
when
`g_strdup_printf` was used instead of `asprintf`.
Problem discoverd by raspeguy.
Mistake discovered by optmzr and Martin.
Thanks to everybody involved!
This commit is contained in:
parent
78447927eb
commit
e9ef3cf1d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user