From 42bbc185e1aec8e3a8db0f2bc568c34697ccc474 Mon Sep 17 00:00:00 2001 From: Kumar Arnav <36244620+Karnav123@users.noreply.github.com> Date: Mon, 8 May 2023 07:16:34 +0530 Subject: [PATCH] Fix #1497 (#1592) --- lib/src/HttpAppFrameworkImpl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/HttpAppFrameworkImpl.h b/lib/src/HttpAppFrameworkImpl.h index 8380daad..4a96467b 100644 --- a/lib/src/HttpAppFrameworkImpl.h +++ b/lib/src/HttpAppFrameworkImpl.h @@ -356,7 +356,7 @@ class HttpAppFrameworkImpl final : public HttpAppFramework } HttpAppFramework &setGzipStatic(bool useGzipStatic) override; HttpAppFramework &setBrStatic(bool useGzipStatic) override; - HttpAppFramework &setClientMaxBodySize(size_t maxSize) override + HttpAppFramework &setClientMaxBodySize(uint64_t maxSize) override { clientMaxBodySize_ = maxSize; return *this; @@ -405,7 +405,7 @@ class HttpAppFrameworkImpl final : public HttpAppFramework HttpAppFramework &setImplicitPage( const std::string &implicitPageFile) override; const std::string &getImplicitPage() const override; - size_t getClientMaxBodySize() const + uint64_t getClientMaxBodySize() const { return clientMaxBodySize_; } @@ -686,7 +686,7 @@ class HttpAppFrameworkImpl final : public HttpAppFramework std::pair floatPrecisionInJson_{0, "significant"}; bool usingCustomErrorHandler_{false}; - size_t clientMaxBodySize_{1024 * 1024}; + uint64_t clientMaxBodySize_{1024 * 1024}; size_t clientMaxMemoryBodySize_{64 * 1024}; size_t clientMaxWebSocketMessageSize_{128 * 1024}; std::string homePageFile_{"index.html"};