mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-09 08:58:27 +00:00
Add HTTP response code support plus other tweaks to help in responding
This commit is contained in:
@ -57,7 +57,9 @@ static void tcp_client_thread( beken_thread_arg_t arg )
|
||||
|
||||
request.fd = fd;
|
||||
request.received = buf;
|
||||
request.receivedLen = recv( fd, request.received, 1024, 0 );
|
||||
request.receivedLenmax = 1024;
|
||||
request.responseCode = HTTP_RESPONSE_OK;
|
||||
request.receivedLen = recv( fd, request.received, request.receivedLenmax, 0 );
|
||||
request.received[request.receivedLen] = 0;
|
||||
|
||||
request.reply = reply;
|
||||
|
||||
Reference in New Issue
Block a user