Commit 7b356122 by amir

Fix Halt port request at server

parent 553b93d0
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12)
project(Microservice) project(Microservice)
# version stuff # version stuff
set (Microservice_VERSION_MAJOR 1) set (Microservice_VERSION_MAJOR 2)
set (Microservice_VERSION_MINOR 3) set (Microservice_VERSION_MINOR 3)
set (Microservice_VERSION_PATCH 0) set (Microservice_VERSION_PATCH 0)
set(Microservice_VERSION_STRING ${Microservice_VERSION_MAJOR}.${Microservice_VERSION_MINOR}.${Microservice_VERSION_PATCH}) set(Microservice_VERSION_STRING ${Microservice_VERSION_MAJOR}.${Microservice_VERSION_MINOR}.${Microservice_VERSION_PATCH})
......
...@@ -191,6 +191,8 @@ MSICommandClientHttpImpl::createRequestTask(const MSICommandClientHttpImpl::Http ...@@ -191,6 +191,8 @@ MSICommandClientHttpImpl::createRequestTask(const MSICommandClientHttpImpl::Http
// content // content
if(!cmdDataPtr->p_cmd_params->GetContent().empty()) 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); //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