misc fixes to mmsproxy
This commit is contained in:
parent
d5d9b76af2
commit
0885a7965b
|
@ -1830,7 +1830,7 @@ static void mm7eaif_dispatch(MmsHTTPClientInfo *h)
|
||||||
" --> Enterred eaif send interface, blen=%d <--- ",
|
" --> Enterred eaif send interface, blen=%d <--- ",
|
||||||
msize);
|
msize);
|
||||||
|
|
||||||
|
hfrom = http_header_value(h->headers, octstr_imm("X-NOKIA-MMSC-From"));
|
||||||
if (!h->body || /* A body is required, and must parse */
|
if (!h->body || /* A body is required, and must parse */
|
||||||
(m = mms_frombinary(h->body, hfrom ? hfrom : octstr_imm("anon@anon"))) == NULL) {
|
(m = mms_frombinary(h->body, hfrom ? hfrom : octstr_imm("anon@anon"))) == NULL) {
|
||||||
http_header_add(rh, "Content-Type", "text/plain");
|
http_header_add(rh, "Content-Type", "text/plain");
|
||||||
|
@ -1887,7 +1887,7 @@ static void mm7eaif_dispatch(MmsHTTPClientInfo *h)
|
||||||
if (expiryt < 0)
|
if (expiryt < 0)
|
||||||
expiryt = time(NULL) + settings->default_msgexpiry;
|
expiryt = time(NULL) + settings->default_msgexpiry;
|
||||||
|
|
||||||
if ((hfrom = http_header_value(h->headers, octstr_imm("X-NOKIA-MMSC-From"))) == NULL)
|
if (hfrom == NULL)
|
||||||
hfrom = http_header_value(mh, octstr_imm("From"));
|
hfrom = http_header_value(mh, octstr_imm("From"));
|
||||||
|
|
||||||
mms_remove_headers(m, "Bcc");
|
mms_remove_headers(m, "Bcc");
|
||||||
|
|
Loading…
Reference in New Issue