From 543d1a8c8062b3873ef89c64ffd7394c6dd7c7e8 Mon Sep 17 00:00:00 2001 From: antao Date: Mon, 16 Sep 2019 13:01:40 +0800 Subject: [PATCH] Fix a bug when HTTP method is PUT --- lib/src/HttpRequestImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/HttpRequestImpl.h b/lib/src/HttpRequestImpl.h index 9ff397d7..adaf4b7e 100644 --- a/lib/src/HttpRequestImpl.h +++ b/lib/src/HttpRequestImpl.h @@ -194,7 +194,7 @@ class HttpRequestImpl : public HttpRequest { if (!_query.empty()) return _query; - if (_method == Post) + if (_method == Post || _method == Put) { if (_cacheFilePtr) return _cacheFilePtr->getStringView();