]> 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)
committerGerrit <noreply@gerrit.asterisk.org>
Thu, 3 Dec 2020 16:28:13 +0000 (10:28 -0600)
commit0c185c9e21f7f0bd9c9f7a1a1cda8f33e12c2a2a
treefe571b6657332a5a9cea34c28a11e52a89ccfbca
parentddbf3a7f73041c2de39f5e8f1518240507e38b24
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