1
0
Fork 0

Minor fix for uaprof handling in mmsproxy -- improved fallback

This commit is contained in:
bagyenda 2006-02-21 15:40:30 +00:00
parent 7efbee12b7
commit 3d88101a5f
1 changed files with 9 additions and 1 deletions

View File

@ -139,7 +139,15 @@ int main(int argc, char *argv[])
octstr_strip_nonalphanums(profile_url);
h.prof = mms_get_ua_profile(octstr_get_cstr(profile_url));
octstr_destroy(profile_url);
} else
}
/* In case profile_url is missing or we haven't cached it yet,
* use a fall back strategy and construct profile from HTTP headers.
* XXX: Do we need to make mms_get_ua_profile()
* construct profile even if it's not cached?
*/
if (!h.prof)
h.prof = mms_make_ua_profile(h.headers);
/* Get the sender address. */