Fix --no-http compile
This commit is contained in:
parent
89a5162448
commit
36c980ba6f
@ -56,9 +56,9 @@ namespace http
|
|||||||
// add post data to a request
|
// add post data to a request
|
||||||
void Request::AddPostData(std::map<ByteString, ByteString> data)
|
void Request::AddPostData(std::map<ByteString, ByteString> data)
|
||||||
{
|
{
|
||||||
|
#ifndef NOHTTP
|
||||||
// Even if the map is empty, calling this function signifies you want to do a POST request
|
// Even if the map is empty, calling this function signifies you want to do a POST request
|
||||||
isPost = true;
|
isPost = true;
|
||||||
#ifndef NOHTTP
|
|
||||||
if (!data.size())
|
if (!data.size())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user