remove-const.patch 927 B

12345678910111213141516171819202122
  1. From 34bb2c023d60d22e4b1a31750d9b649d7729209e Mon Sep 17 00:00:00 2001
  2. From: xpxz <[email protected]>
  3. Date: Wed, 19 Jun 2024 14:08:48 +0800
  4. Subject: [PATCH] remove const in set_to_text_limit
  5. ---
  6. include/asio2/http/detail/flex_body.hpp | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/include/asio2/http/detail/flex_body.hpp b/include/asio2/http/detail/flex_body.hpp
  9. index 491f5b8a..18e682db 100644
  10. --- a/include/asio2/http/detail/flex_body.hpp
  11. +++ b/include/asio2/http/detail/flex_body.hpp
  12. @@ -136,7 +136,7 @@ class basic_flex_body<TextBody, FileBody>::value_type
  13. inline bool is_text() const noexcept { return !is_file(); }
  14. inline bool is_file() const noexcept { return file_.is_open(); }
  15. - inline void set_to_text_limit(std::uint64_t v) const noexcept
  16. + inline void set_to_text_limit(std::uint64_t v) noexcept
  17. {
  18. this->to_text_limit_ = v;
  19. }