From 8feb5031c729f5de5c4aca72f92322e9b6f06c91 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 29 Jul 2007 11:31:50 +0000 Subject: fixed content type parsing git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@49 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/downloader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/downloader.cpp') 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 -- cgit v1.2.3-13-gbd6f