From 5fcfd826bd4a4c4ae0e87f62387653173948b663 Mon Sep 17 00:00:00 2001 From: doganyazar Date: Mon, 3 Jan 2011 22:25:04 +0000 Subject: [PATCH] Minor modification in .well-known/core service after the comments of Matthias Kovatsch. --- examples/rest-example/rest-server-example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);