forked from wolfSSL/wolfssl
add close on pre to echoserver example
This commit is contained in:
@ -383,7 +383,7 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
|
|||||||
const char resp[] =
|
const char resp[] =
|
||||||
"HTTP/1.0 200 ok\r\nContent-type: text/html\r\n\r\n"
|
"HTTP/1.0 200 ok\r\nContent-type: text/html\r\n\r\n"
|
||||||
"<html><body BGCOLOR=\"#ffffff\"><pre>\r\n"
|
"<html><body BGCOLOR=\"#ffffff\"><pre>\r\n"
|
||||||
"greetings from wolfSSL\r\n</body></html>\r\n\r\n";
|
"greetings from wolfSSL\r\n</pre></body></html>\r\n\r\n";
|
||||||
|
|
||||||
echoSz = (int)strlen(resp) + 1;
|
echoSz = (int)strlen(resp) + 1;
|
||||||
if (echoSz > (int)sizeof(command)) {
|
if (echoSz > (int)sizeof(command)) {
|
||||||
|
Reference in New Issue
Block a user