Skip to content

Commit

Permalink
Fix a bug when HTTP method is PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tao committed Sep 16, 2019
1 parent 9855fc9 commit 543d1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/HttpRequestImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 543d1a8

Please sign in to comment.