瀏覽代碼

dmq: Parse Content-Length header if it isn't parsed yet

Alex Hermann 11 年之前
父節點
當前提交
549f96e560
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/dmq/notification_peer.c

+ 2 - 1
modules/dmq/notification_peer.c

@@ -102,7 +102,8 @@ int extract_node_list(dmq_node_list_t* update_list, struct sip_msg* msg)
 	dmq_node_t *cur = NULL;
 	dmq_node_t *ret, *find;
 	char *tmp, *end, *match;
-	if(!msg->content_length) {
+
+	if(!msg->content_length && (parse_headers(msg,HDR_CONTENTLENGTH_F,0)<0 || !msg->content_length)) {
 		LM_ERR("no content length header found\n");
 		return -1;
 	}