diff options
author | Sam Stenvall <Jalle19@users.noreply.github.com> | 2015-06-18 13:22:48 +0300 |
---|---|---|
committer | Sam Stenvall <Jalle19@users.noreply.github.com> | 2015-06-18 13:22:48 +0300 |
commit | 8bc1efdf218df005c63ceae60967f71000d8302f (patch) | |
tree | 8da5be02991b7394db8118cf85c095602d0ef206 | |
parent | f2b4723c242f57023cde6bfec1c392f66a4728e7 (diff) | |
parent | 8b32f509de112d0b96988fb0e4b0cf14d2c03cab (diff) |
Merge pull request #7290 from Jalle19/curlfile-error
consider a CURLINFO_RESPONSE_CODE of zero a failed request
-rw-r--r-- | xbmc/filesystem/CurlFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp index 3ef01e035d..e98763338c 100644 --- a/xbmc/filesystem/CurlFile.cpp +++ b/xbmc/filesystem/CurlFile.cpp @@ -962,7 +962,7 @@ bool CCurlFile::Open(const CURL& url) m_state->m_sendRange = m_seekable; m_httpresponse = m_state->Connect(m_bufferSize); - if (m_httpresponse < 0 || m_httpresponse >= 400) + if (m_httpresponse <= 0 || m_httpresponse >= 400) { CLog::Log(LOGERROR, "CCurlFile::Open failed with code %li for %s", m_httpresponse, url.GetRedacted().c_str()); return false; |