Fix a bug when HTTP method is PUT

This commit is contained in:
antao 2019-09-16 13:01:40 +08:00
parent 9855fc9b4f
commit 543d1a8c80
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class HttpRequestImpl : public HttpRequest
{ {
if (!_query.empty()) if (!_query.empty())
return _query; return _query;
if (_method == Post) if (_method == Post || _method == Put)
{ {
if (_cacheFilePtr) if (_cacheFilePtr)
return _cacheFilePtr->getStringView(); return _cacheFilePtr->getStringView();