diff --git a/examples/rest-example/rest-server-example.c b/examples/rest-example/rest-server-example.c index 49e477e41..b7ae04342 100644 --- a/examples/rest-example/rest-server-example.c +++ b/examples/rest-example/rest-server-example.c @@ -126,9 +126,9 @@ discover_handler(REQUEST* request, RESPONSE* response) { char temp[100]; int index = 0; - index += sprintf(temp + index, "%s\n", ";n=\"HelloWorld\""); - index += sprintf(temp + index, "%s\n", ";n=\"LedControl\""); - index += sprintf(temp + index, "%s\n", ";n=\"Light\""); + index += sprintf(temp + index, "%s,", ";n=\"HelloWorld\""); + index += sprintf(temp + index, "%s,", ";n=\"LedControl\""); + index += sprintf(temp + index, "%s", ";n=\"Light\""); rest_set_response_payload(response, temp, strlen(temp)); rest_set_header_content_type(response, APPLICATION_LINK_FORMAT);