Minor modification in .well-known/core service after the comments of Matthias Kovatsch.

This commit is contained in:
doganyazar 2011-01-03 22:25:04 +00:00
parent a81efabfb5
commit 5fcfd826bd

View File

@ -126,9 +126,9 @@ discover_handler(REQUEST* request, RESPONSE* response)
{ {
char temp[100]; char temp[100];
int index = 0; int index = 0;
index += sprintf(temp + index, "%s\n", "<helloworld>;n=\"HelloWorld\""); index += sprintf(temp + index, "%s,", "</helloworld>;n=\"HelloWorld\"");
index += sprintf(temp + index, "%s\n", "<led>;n=\"LedControl\""); index += sprintf(temp + index, "%s,", "</led>;n=\"LedControl\"");
index += sprintf(temp + index, "%s\n", "<light>;n=\"Light\""); index += sprintf(temp + index, "%s", "</light>;n=\"Light\"");
rest_set_response_payload(response, temp, strlen(temp)); rest_set_response_payload(response, temp, strlen(temp));
rest_set_header_content_type(response, APPLICATION_LINK_FORMAT); rest_set_header_content_type(response, APPLICATION_LINK_FORMAT);