]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_media_cache.c: Parse media URLs to find extensions.
authorSean Bright <sean.bright@gmail.com>
Fri, 2 Jul 2021 15:15:05 +0000 (11:15 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 16 Jul 2021 22:10:39 +0000 (17:10 -0500)
commit68dbcd5ef5de3be4743bb107055a19ea01a7e074
tree7b4d8fa7e634fb2909b7982c9451e8ef63313d0d
parentf0fd0e767586a27dba95838cd96ffc838d36b8ec
res_http_media_cache.c: Parse media URLs to find extensions.

Use the URI parsing functions to parse playback URLs in order to find
their file extensions.

For backwards compatibility, we first look at the full URL, then at
any Content-Type header, and finally at just the path portion of the
URL.

ASTERISK-27871 #close

Change-Id: I16d0682f6d794be96539261b3e48f237909139cb
main/media_cache.c
res/res_http_media_cache.c
tests/test_http_media_cache.c