aboutsummaryrefslogtreecommitdiffstats
path: root/Input/ICNConnectionConsumerApi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Input/ICNConnectionConsumerApi.cpp')
-rw-r--r--Input/ICNConnectionConsumerApi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Input/ICNConnectionConsumerApi.cpp b/Input/ICNConnectionConsumerApi.cpp
index f983a054..a7f52b44 100644
--- a/Input/ICNConnectionConsumerApi.cpp
+++ b/Input/ICNConnectionConsumerApi.cpp
@@ -142,8 +142,11 @@ int ICNConnectionConsumerApi::Read(uint8_t *data, size_t len)
{
if(!res)
{
+ std::map<std::string, std::string> headers = {{"Host", "localhost"},
+ {"User-Agent", "higet/1.0"},
+ {"Connection", "Keep-Alive"}};
std::string s(m_name.c_str());
- hTTPClientConnection->get(s);
+ hTTPClientConnection->get(s, headers);
response = hTTPClientConnection->response();
this->res = true;
this->dataPos = 0;