Subject: cgi: fix uint64_t formating
On some platforms 'llu' format is needed for uint64_t instead of 'lu'. PRIu64 format specifier fixes these platform specific issues. Signed-off-by: Petar Paradzik <petar.paradzik@sartura.hr>
This commit is contained in:
parent
138c8523f9
commit
04ed8d2673
2 changed files with 3 additions and 0 deletions
|
@ -381,6 +381,8 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
break;
|
||||
|
||||
case LWS_CALLBACK_CGI_TERMINATED:
|
||||
lwsl_debug("LWS_CALLBACK_CGI_TERMINATED: %d %" PRIu64 "\n",
|
||||
wsi->cgi->explicitly_chunked, (uint64_t)wsi->cgi->content_length);
|
||||
if (!wsi->cgi->explicitly_chunked && !wsi->cgi->content_length) {
|
||||
/* send terminating chunk */
|
||||
wsi->reason_bf |= LWS_CB_REASON_AUX_BF__CGI_CHUNK_END;
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#if defined(LWS_WITH_ESP32)
|
||||
#define MSG_NOSIGNAL 0
|
||||
|
|
Loading…
Add table
Reference in a new issue