[asterisk-bugs] [JIRA] (ASTERISK-29527) res_http_media_cache: Cleanup audio format lookup in HTTP requests
Sean Bright (JIRA)
noreply at issues.asterisk.org
Fri Jul 23 11:17:33 CDT 2021
Sean Bright created ASTERISK-29527:
--------------------------------------
Summary: res_http_media_cache: Cleanup audio format lookup in HTTP requests
Key: ASTERISK-29527
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29527
Project: Asterisk
Issue Type: Improvement
Security Level: None
Components: Resources/res_http_media_cache
Affects Versions: GIT, 19.0.0
Reporter: Sean Bright
Asterisk first looks at the end of the URL to determine the file extension of the returned audio, which in many cases will not work because the URL may end with a query string or a URL fragment. If that fails, Asterisk then looks at the Content-Type header and then finally parses the URL to get the extension.
The order has been changed such that we look at the Content-Type header first, followed by looking for the extension of the parsed URL. We no longer look at the end of the URL, which was error prone.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list