Skip to content
Snippets Groups Projects
Commit 04ed8d26 authored by Petar Paradzik's avatar Petar Paradzik Committed by Andy Green
Browse files

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: default avatarPetar Paradzik <petar.paradzik@sartura.hr>
parent 138c8523
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment