Revision 0bfdcc3a src/path_handlers.c

View differences:

src/path_handlers.c
92 92
			debug("Streamer instance created\n");
93 93
			sdpuri = sdpfile_create(c, ch, ps);
94 94
			mg_printf(nc, "%s", "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\n\r\n");
95
			mg_printf_http_chunk(nc, "{id=%s,sdpfile=%s}", id, sdpuri);
95
			mg_printf_http_chunk(nc, "{\"id\":\"%s\",\"name\":\"%s\",\"sdpfile\":\"%s\"}", id, ch->name, sdpuri);
96 96
			mg_send_http_chunk(nc, "", 0); /* Send empty chunk, the end of response */
97 97
			free(sdpuri);
98 98
		} else {

Also available in: Unified diff