浏览代码

rls(k): added CRLF for Subscription-State header

- for the case of subscrition termination on timeout, the header was
  missing CRLF to its end
- patch by Klaus Darilion
Daniel-Constantin Mierla 14 年之前
父节点
当前提交
7925ae1a9a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_k/rls/notify.c

+ 1 - 1
modules_k/rls/notify.c

@@ -595,7 +595,7 @@ str* rls_notify_extra_hdr(subs_t* subs, char* start_cid, char* boundary_string)
 			"Subscription-State: active;expires=%d\r\n", expires);
 	else
 		str_hdr->len+= sprintf(str_hdr->s+str_hdr->len,
-			"Subscription-State: terminated;reason=timeout");
+			"Subscription-State: terminated;reason=timeout\r\n");
 
 	str_hdr->len+= sprintf(str_hdr->s+str_hdr->len, "Require: eventlist\r\n");