Updated with Patches from Jacek
This commit is contained in:
parent
be8dc0ee28
commit
cb989364b8
|
@ -66,9 +66,9 @@ static int pgq_init_module(Octstr *conninfo, char *xtopdir, int max_connections)
|
||||||
|
|
||||||
/* Now look for flags */
|
/* Now look for flags */
|
||||||
if ((i = octstr_search_char(xcinfo, ';', 0)) > 0) {
|
if ((i = octstr_search_char(xcinfo, ';', 0)) > 0) {
|
||||||
Octstr *x = octstr_copy(xcinfo, 0, i);
|
Octstr *x = octstr_copy(xcinfo, i, octstr_len(xcinfo));
|
||||||
|
|
||||||
octstr_delete(xcinfo, 0, i+1);
|
octstr_delete(xcinfo, i, octstr_len(xcinfo));
|
||||||
|
|
||||||
if (octstr_case_search(x, octstr_imm("internal"), 0) >= 0)
|
if (octstr_case_search(x, octstr_imm("internal"), 0) >= 0)
|
||||||
external_storage = 0;
|
external_storage = 0;
|
||||||
|
|
|
@ -706,7 +706,7 @@ int mm7_soapmsg_to_httpmsg(MSoapMsg_t *m, MM7Version_t *ver, List **hdrs, Octstr
|
||||||
http_destroy_headers(hx);
|
http_destroy_headers(hx);
|
||||||
|
|
||||||
hx = http_create_empty_headers();
|
hx = http_create_empty_headers();
|
||||||
http_header_add(hx, "Content-Type", "text/xml");
|
http_header_add(hx, "Content-Type", "text/xml; charset=utf-8");
|
||||||
http_header_add(hx, "Content-ID", octstr_get_cstr(envloc));
|
http_header_add(hx, "Content-ID", octstr_get_cstr(envloc));
|
||||||
mime_replace_headers(xml, hx);
|
mime_replace_headers(xml, hx);
|
||||||
http_destroy_headers(hx);
|
http_destroy_headers(hx);
|
||||||
|
|
|
@ -3036,14 +3036,14 @@ MmsMsg *make_msg_from_sendmms_request(Octstr *from, List *to,
|
||||||
|
|
||||||
dict_destroy(url_map);
|
dict_destroy(url_map);
|
||||||
/* SMIL has been modified, convert it to text, put it in. */
|
/* SMIL has been modified, convert it to text, put it in. */
|
||||||
xmlDocDumpFormatMemory(smil, &buf, &bsize, 1);
|
xmlDocDumpFormatMemoryEnc(smil, &buf, &bsize, "utf-8", 1);
|
||||||
xmlFreeDoc(smil);
|
xmlFreeDoc(smil);
|
||||||
if (buf) {
|
if (buf) {
|
||||||
MIMEEntity *sm = mime_entity_create();
|
MIMEEntity *sm = mime_entity_create();
|
||||||
List *xh = http_create_empty_headers();
|
List *xh = http_create_empty_headers();
|
||||||
Octstr *s;
|
Octstr *s;
|
||||||
|
|
||||||
http_header_add(xh, "Content-Type", "application/smil");
|
http_header_add(xh, "Content-Type", "application/smil; charset=utf-8");
|
||||||
http_header_add(xh, "Content-ID", "<presentation>"); /* identify it as start element. */
|
http_header_add(xh, "Content-ID", "<presentation>"); /* identify it as start element. */
|
||||||
if (xmhdr)
|
if (xmhdr)
|
||||||
http_header_add(xh, octstr_get_cstr(xmhdr), octstr_get_cstr(xmhdr_val));
|
http_header_add(xh, octstr_get_cstr(xmhdr), octstr_get_cstr(xmhdr_val));
|
||||||
|
|
Loading…
Reference in New Issue