From 6e473a7c5c278206bf7f376e30b6b07fe9705660 Mon Sep 17 00:00:00 2001
From: miketsts <33390384+miketsts@users.noreply.github.com>
Date: Tue, 10 Mar 2020 20:48:14 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20conversion=20to=20=E2=80=98int=E2=80=99?=
 =?UTF-8?q?=20from=20=E2=80=98long=20int=E2=80=99=20warning=20(#377)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Michael Tseitlin <michael.tseitlin@concertio.com>
---
 httplib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httplib.h b/httplib.h
index 661a8f8..f3a2447 100644
--- a/httplib.h
+++ b/httplib.h
@@ -1921,7 +1921,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
 template <typename T>
 inline ssize_t write_headers(Stream &strm, const T &info,
                              const Headers &headers) {
-  auto write_len = 0;
+  ssize_t write_len = 0;
   for (const auto &x : info.headers) {
     auto len =
         strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str());