Commit 8aea0dec authored by Matthieu Tanon's avatar Matthieu Tanon
Browse files

Add complete User-Agent to HTTP requests

parent 970c9f72
......@@ -97,10 +97,13 @@ LimeManager::LimeManager (
belle_http_request_t *req;
belle_sip_memory_body_handler_t *bh;
stringstream userAgent;
userAgent << "Linphone/" << linphone_core_get_version() << " (Lime)" << " Belle-sip/" << belle_sip_version_to_string();
bh = belle_sip_memory_body_handler_new_copy_from_buffer(, message.size(), NULL, NULL);
req=belle_http_request_create("POST", uri,
belle_http_header_create("User-Agent", "lime"),
belle_http_header_create("User-Agent", userAgent.str().c_str()),
belle_http_header_create("Content-type", "x3dh/octet-stream"),
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 to comment