]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_media_cache.c: Set reasonable number of redirects
authorSean Bright <sean.bright@gmail.com>
Sat, 21 Nov 2020 17:51:48 +0000 (12:51 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 9 Dec 2020 19:05:27 +0000 (13:05 -0600)
commit90fd1fd96adb27993d395b66b079b8d9ebeccd16
tree00d73d65087d1bb1bc8927eed06420874f334624
parentb08427134fd51bb549f198e9f60685f2680c68d7
res_http_media_cache.c: Set reasonable number of redirects

By default libcurl does not follow redirects, so we explicitly enable
it by setting CURLOPT_FOLLOWLOCATION. Once that is enabled, libcurl
will follow up to CURLOPT_MAXREDIRS redirects, which by default is
configured to be unlimited.

This patch sets CURLOPT_MAXREDIRS to a more reasonable default (8). If
we determine at some point that this needs to be increased on
configurable it is a trivial change.

ASTERISK-29173 #close

Change-Id: I4925ebbcf0c7d728bb9252b3795b3479ae225b30
res/res_http_media_cache.c