Browse code

sl: disabled SREV_NET_DATA_SENT for HTTP respones

more details at GH #2767

Sergey Safarov authored on 06/06/2021 15:50:24
Showing 1 changed files
... ...
@@ -210,7 +210,11 @@ int sl_reply_helper(struct sip_msg *msg, int code, char *reason, str *tag)
210 210
 	dst.comp=msg->via1->comp_no;
211 211
 #endif
212 212
 	dst.send_flags=msg->rpl_send_flags;
213
-	ret = msg_send(&dst, buf.s, buf.len);
213
+	if(sip_check_fline(buf.s, buf.len) == 0)
214
+		ret = msg_send_buffer(&dst, buf.s, buf.len, 0);
215
+	else
216
+		ret = msg_send_buffer(&dst, buf.s, buf.len, 1);
217
+
214 218
 	mhomed=backup_mhomed;
215 219
 
216 220
 	keng = sr_kemi_eng_get();