diff --git a/src/ustreamer/http/server.c b/src/ustreamer/http/server.c index 1fe1f30..bd0c219 100644 --- a/src/ustreamer/http/server.c +++ b/src/ustreamer/http/server.c @@ -667,10 +667,12 @@ static void _http_callback_stream_write(struct bufferevent *buf_event, void *v_c "Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate, pre-check=0, post-check=0, max-age=0" RN "Pragma: no-cache" RN "Expires: Mon, 3 Jan 2000 12:34:56 GMT" RN - "Set-Cookie: stream_client=%s/%" PRIx64 "; path=/; max-age=30" RN + "Set-Cookie: stream_client%s%s=%s/%" PRIx64 "; path=/; max-age=30" RN "Content-Type: multipart/x-mixed-replace;boundary=" BOUNDARY RN RN "--" BOUNDARY RN, + (server->instance_id[0] == '\0' ? "" : "_"), + server->instance_id, (client->key != NULL ? client->key : "0"), client->id );