Fix for User-Agent version number string.
This commit is contained in:
parent
fa4bac1491
commit
a27ae1b7b2
|
@ -523,7 +523,7 @@ MmsUaProfile *mms_get_ua_profile(char *url)
|
||||||
|
|
||||||
if (client) {
|
if (client) {
|
||||||
h = http_create_empty_headers();
|
h = http_create_empty_headers();
|
||||||
http_header_add(h, "User-Agent", MM_NAME "/" GW_VERSION);
|
http_header_add(h, "User-Agent", MM_NAME "/" MMSC_VERSION);
|
||||||
http_start_request(client,HTTP_METHOD_GET, s, h, NULL, 1, octstr_duplicate(s), NULL);
|
http_start_request(client,HTTP_METHOD_GET, s, h, NULL, 1, octstr_duplicate(s), NULL);
|
||||||
|
|
||||||
http_destroy_headers(h);
|
http_destroy_headers(h);
|
||||||
|
|
|
@ -106,7 +106,7 @@ static void start_push(Octstr *rcpt_to, int isphonenum, MmsEnvelope *e, MmsMsg *
|
||||||
|
|
||||||
pheaders = http_create_empty_headers();
|
pheaders = http_create_empty_headers();
|
||||||
http_header_add(pheaders, "Connection", "close");
|
http_header_add(pheaders, "Connection", "close");
|
||||||
http_header_add(pheaders, "User-Agent", MM_NAME "/" GW_VERSION);
|
http_header_add(pheaders, "User-Agent", MM_NAME "/" MMSC_VERSION);
|
||||||
|
|
||||||
http_start_request(httpcaller, HTTP_METHOD_GET, url,
|
http_start_request(httpcaller, HTTP_METHOD_GET, url,
|
||||||
pheaders, NULL, 0, e, NULL);
|
pheaders, NULL, 0, e, NULL);
|
||||||
|
|
Loading…
Reference in New Issue