MMSbox: Improved sending of data to service - try to send all parts to look like files
This commit is contained in:
parent
d48ac96cd7
commit
b2f178153c
|
@ -204,7 +204,9 @@ done:
|
|||
List *ph = get_value_parameters(q);
|
||||
Octstr *v = http_header_value(ph, octstr_imm("name"));
|
||||
|
||||
if (v) {
|
||||
if (!v) /* make up a fake name. */
|
||||
v = octstr_format("%S-file", pm->name);
|
||||
|
||||
octstr_format_append(cd, "; filename=\"%S\"", v);
|
||||
http_header_remove_all(ph, "name");
|
||||
|
||||
|
@ -217,7 +219,7 @@ done:
|
|||
ctype = octstr_duplicate(c);
|
||||
if (v)
|
||||
octstr_destroy(v);
|
||||
}
|
||||
|
||||
http_destroy_headers(ph);
|
||||
octstr_destroy(q);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue