aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-07-29 11:31:50 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-07-29 11:31:50 +0000
commit8feb5031c729f5de5c4aca72f92322e9b6f06c91 (patch)
tree511dfc11997c7a30325d7b45f8ef7b739ad6428f
parent6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95 (diff)
downloadqmmp-8feb5031c729f5de5c4aca72f92322e9b6f06c91.tar.gz
qmmp-8feb5031c729f5de5c4aca72f92322e9b6f06c91.tar.bz2
qmmp-8feb5031c729f5de5c4aca72f92322e9b6f06c91.zip
fixed content type parsing
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@49 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--lib/downloader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/downloader.cpp b/lib/downloader.cpp
index d9101ae8d..7a0547cee 100644
--- a/lib/downloader.cpp
+++ b/lib/downloader.cpp
@@ -129,6 +129,8 @@ QString Downloader::contentType()
content = m_stream.header.value("Content-Type");
if (m_stream.header.contains("content-type"))
content = m_stream.header.value("content-type");
+ if (m_stream.header.contains("Content-type"))
+ content = m_stream.header.value("content-type");
return content;
}
@@ -178,7 +180,7 @@ void Downloader::run()
curl_easy_setopt(m_handle, CURLOPT_PROGRESSFUNCTION, curl_progress);
// Any kind of authentication
curl_easy_setopt(m_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
- //curl_easy_setopt(m_handle, CURLOPT_VERBOSE, 1);
+ curl_easy_setopt(m_handle, CURLOPT_VERBOSE, 1);
// Auto referrer
curl_easy_setopt(m_handle, CURLOPT_AUTOREFERER, 1);
// Follow redirections