"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/filesystem/CurlFile.cpp" between
xbmc-18.8-Leia.tar.gz and xbmc-18.9-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

CurlFile.cpp  (xbmc-18.8-Leia):CurlFile.cpp  (xbmc-18.9-Leia)
skipping to change at line 633 skipping to change at line 633
if (m_lowspeedtime == 0) if (m_lowspeedtime == 0)
m_lowspeedtime = CServiceBroker::GetSettingsComponent()->GetAdvancedSettings ()->m_curllowspeedtime; m_lowspeedtime = CServiceBroker::GetSettingsComponent()->GetAdvancedSettings ()->m_curllowspeedtime;
// Set the lowspeed time very low as it seems Curl takes much longer to detect a lowspeed condition // Set the lowspeed time very low as it seems Curl takes much longer to detect a lowspeed condition
g_curlInterface.easy_setopt(h, CURLOPT_LOW_SPEED_TIME, m_lowspeedtime); g_curlInterface.easy_setopt(h, CURLOPT_LOW_SPEED_TIME, m_lowspeedtime);
// Setup allowed TLS/SSL ciphers. New versions of cURL may deprecate things th at are still in use. // Setup allowed TLS/SSL ciphers. New versions of cURL may deprecate things th at are still in use.
if (!m_cipherlist.empty()) if (!m_cipherlist.empty())
g_curlInterface.easy_setopt(h, CURLOPT_SSL_CIPHER_LIST, m_cipherlist.c_str() ); g_curlInterface.easy_setopt(h, CURLOPT_SSL_CIPHER_LIST, m_cipherlist.c_str() );
// enable HTTP2 support. default: CURL_HTTP_VERSION_1_1. Curl >= 7.62.0 defaul if (CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->m_curlDisab
ts to CURL_HTTP_VERSION_2TLS leHTTP2)
g_curlInterface.easy_setopt(h, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); g_curlInterface.easy_setopt(h, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
else
// enable HTTP2 support. default: CURL_HTTP_VERSION_1_1. Curl >= 7.62.0 defa
ults to CURL_HTTP_VERSION_2TLS
g_curlInterface.easy_setopt(h, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS)
;
} }
void CCurlFile::SetRequestHeaders(CReadState* state) void CCurlFile::SetRequestHeaders(CReadState* state)
{ {
if(state->m_curlHeaderList) if(state->m_curlHeaderList)
{ {
g_curlInterface.slist_free_all(state->m_curlHeaderList); g_curlInterface.slist_free_all(state->m_curlHeaderList);
state->m_curlHeaderList = NULL; state->m_curlHeaderList = NULL;
} }
 End of changes. 1 change blocks. 
4 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)