Browse code

timer: extend internal static HTTP message to have one header

(cherry picked from commit c3629f877500373028d2c7cdefd976cddda31c15)

Daniel-Constantin Mierla authored on 05/10/2021 12:25:03
Showing 1 changed files
... ...
@@ -159,7 +159,7 @@ static unsigned int timer_msg_no = 0;
159 159
 static ticks_t timer_handler(ticks_t ticks, struct timer_ln* tl, void* data)
160 160
 {
161 161
 	/*?min length of first line of message is 16 char!?*/
162
-#define MSG "GET /timer HTTP/0.9\n\n"
162
+#define MSG "GET /timer HTTP/0.9\r\nUser-Agent: internal\r\n\r\n"
163 163
 	sip_msg_t* msg;
164 164
 	timer_action_t *a;
165 165
 	run_act_ctx_t ra_ctx;