Skip to content

Commit

Permalink
presence: fix bad CT header length calculation for NOTIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Dec 6, 2019
1 parent 5572265 commit b0a6d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/presence/notify.c
Expand Up @@ -156,7 +156,7 @@ int build_str_hdr(subs_t* subs, int is_body, str* hdr, str *ct_body,
status.len + ((subs->status== TERMINATED_STATUS)?(10/*;reason=*/+
subs->reason.len):9/*expires=*/ + lexpire_len) + CRLF_LEN +
(is_body ? (14 /*Content-Type: */+
(ct_body?ct_body->len:subs->event->content_type.len)+CRLF_LEN):0);
(ct_body->len?ct_body->len:subs->event->content_type.len)+CRLF_LEN):0);

if(extra_hdrs && extra_hdrs->s && extra_hdrs->len)
extra_len = extra_hdrs->len;
Expand Down

0 comments on commit b0a6d15

Please sign in to comment.