[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/http
From:       Andreas Hartmetz <ahartmetz () gmail ! com>
Date:       2010-12-21 14:50:33
Message-ID: 20101221145033.6A552AC8AA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1208412 by ahartmetz:

Revert r1208112, it seems that it broke encoding of POSTed form data
 - umlauts ended up as that funny Unicode rhombus with question mark.


 M  +9 -9      http.cpp  


--- trunk/KDE/kdelibs/kioslave/http/http.cpp #1208411:1208412
@@ -3488,6 +3488,15 @@
         return parseHeaderFromCache();
     }
 
+    // Let the app know about the mime-type iff this is not
+    // a redirection and the mime-type string is not empty.
+    if (!m_isRedirection &&
+        (!m_mimeType.isEmpty() || m_request.method == HTTP_HEAD) &&
+        (m_isLoadingErrorPage || !authRequiresAnotherRoundtrip)) {
+        kDebug(7113) << "Emitting mimetype " << m_mimeType;
+        mimeType( m_mimeType );
+    }
+
     if (config()->readEntry("PropagateHttpHeader", false) ||
         m_request.cacheTag.ioMode == WriteToCache) {
         // store header lines if they will be used; note that the tokenizer removing
@@ -3512,15 +3521,6 @@
     // to screw up some sites. See BR# 150904.
     forwardHttpResponseHeader();
 
-    // Let the app know about the mime-type iff this is not
-    // a redirection and the mime-type string is not empty.
-    if (!m_isRedirection &&
-        (!m_mimeType.isEmpty() || m_request.method == HTTP_HEAD) &&
-        (m_isLoadingErrorPage || !authRequiresAnotherRoundtrip)) {
-        kDebug(7113) << "Emitting mimetype " << m_mimeType;
-        mimeType( m_mimeType );
-    }    
-
     if (m_request.method == HTTP_HEAD) {
         return true;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic