Browse Source

timer: extend internal static HTTP message to have one header

(cherry picked from commit c3629f877500373028d2c7cdefd976cddda31c15)
(cherry picked from commit a9c5f3e4d29dccda79eee8e594d4316e32196db5)
Daniel-Constantin Mierla 4 năm trước cách đây
mục cha
commit
3d5f1a75a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/timer/timer.c

+ 1 - 1
src/modules/timer/timer.c

@@ -159,7 +159,7 @@ static unsigned int timer_msg_no = 0;
 static ticks_t timer_handler(ticks_t ticks, struct timer_ln* tl, void* data)
 {
 	/*?min length of first line of message is 16 char!?*/
-#define MSG "GET /timer HTTP/0.9\n\n"
+#define MSG "GET /timer HTTP/0.9\r\nUser-Agent: internal\r\n\r\n"
 	sip_msg_t* msg;
 	timer_action_t *a;
 	run_act_ctx_t ra_ctx;