[UDP-HTTP] "NoResults" instead of "NoResult"
Set the explanation to "NoResults" when a request is received but no results were read yet.
This commit is contained in:
parent
5435fd8e68
commit
c48ee0c555
|
@ -49,7 +49,7 @@ The HTTP requests currently implemented are listed bellow.
|
|||
Answer in case of error:
|
||||
``` Results;NOK;Explanation
|
||||
|
||||
``Explanation`` is "NoResult" if no results were received from OwlPS
|
||||
``Explanation`` is “NoResults” if no results were received from OwlPS
|
||||
Positioner yet.
|
||||
|
||||
Normal answer:
|
||||
|
|
|
@ -449,7 +449,7 @@ void prepare_answer(int request_id)
|
|||
|
||||
if (! results)
|
||||
{
|
||||
char answer_end[] = ";NOK;NoResult" ;
|
||||
char answer_end[] = ";NOK;NoResults" ;
|
||||
strncpy(answer + answer_strlen, answer_end,
|
||||
strlen(answer_end)) ;
|
||||
answer_strlen += strlen(answer_end) ;
|
||||
|
@ -499,7 +499,7 @@ void prepare_answer(int request_id)
|
|||
|
||||
if (! results)
|
||||
{
|
||||
char answer_end[] = ";NOK;NoResult" ;
|
||||
char answer_end[] = ";NOK;NoResults" ;
|
||||
strncpy(answer + answer_strlen, answer_end,
|
||||
strlen(answer_end)) ;
|
||||
answer_strlen += strlen(answer_end) ;
|
||||
|
|
Loading…
Reference in New Issue