Fix --no-http compile

This commit is contained in:
jacob1 2020-02-23 23:06:57 -05:00
parent 89a5162448
commit 36c980ba6f

View File

@ -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;