The changes introduced in
dfcdb68 made it impossible to disable HTTP keep-alive
by setting the 'keep-alive' attribute in the backend string accordingly: The
default of 'true' is applied after parsing of the attributes, overriding the
value configured by the user (if any). Rectify this.
m_http_client.set_basic_auth(std::string(user), std::string(*password));
}
+ m_http_client.set_keep_alive(true);
+
auto connect_timeout = k_default_connect_timeout;
auto operation_timeout = k_default_operation_timeout;
m_http_client.set_connection_timeout(connect_timeout);
m_http_client.set_read_timeout(operation_timeout);
m_http_client.set_write_timeout(operation_timeout);
- m_http_client.set_keep_alive(true);
m_http_client.set_default_headers(default_headers);
}