diff --git a/mbuni/mmsbox/mmsbox.c b/mbuni/mmsbox/mmsbox.c index f594772..15e0e24 100644 --- a/mbuni/mmsbox/mmsbox.c +++ b/mbuni/mmsbox/mmsbox.c @@ -1276,7 +1276,7 @@ static void sendmms_func(void *unused) rb = octstr_imm("Error in message conversion"); } else if (!rb) rb = octstr_imm("Failed to send message"); - http_send_reply(client, HTTP_BAD_REQUEST, hh, + http_send_reply(client, (res == 0) ? HTTP_OK : HTTP_BAD_REQUEST, hh, rb ? rb : octstr_imm("Sent")); info(0, "MMSBox.mmssend: u=%s, %s", u ? octstr_get_cstr(u->user) : "none",