diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 11:31:50 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 11:31:50 +0000 |
| commit | 8feb5031c729f5de5c4aca72f92322e9b6f06c91 (patch) | |
| tree | 511dfc11997c7a30325d7b45f8ef7b739ad6428f /lib/downloader.cpp | |
| parent | 6d6c77bef2f4d7750e43e02d8c02f09ee5f2ae95 (diff) | |
| download | qmmp-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
Diffstat (limited to 'lib/downloader.cpp')
| -rw-r--r-- | lib/downloader.cpp | 4 |
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 |
