Commit 7b356122 by amir

Fix Halt port request at server

parent 553b93d0
cmake_minimum_required(VERSION 2.8.12)
project(Microservice)
# version stuff
set (Microservice_VERSION_MAJOR 1)
set (Microservice_VERSION_MAJOR 2)
set (Microservice_VERSION_MINOR 3)
set (Microservice_VERSION_PATCH 0)
set(Microservice_VERSION_STRING ${Microservice_VERSION_MAJOR}.${Microservice_VERSION_MINOR}.${Microservice_VERSION_PATCH})
......
......@@ -190,7 +190,9 @@ MSICommandClientHttpImpl::createRequestTask(const MSICommandClientHttpImpl::Http
}
// content
if(!cmdDataPtr->p_cmd_params->GetContent().empty())
request.set_body(cmdDataPtr->p_cmd_params->GetContent(),"application/json");
request.set_body(cmdDataPtr->p_cmd_params->GetContent(),"application/json");
else
request.headers().add(header_names::content_length,"0");
//auto request_task = client.request(*cmdDataPtr->p_mtd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment