Some fixes to connection manager.
[jenirok] / src / common / source.cpp
index 21245b9..0109f4a 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include <QtCore/QDebug>
+#include <QtNetwork/QHttpResponseHeader>
 #include "source.h"
 #include "eniro.h"
 #include "mobil1881.h"
@@ -181,6 +182,7 @@ void Source::setError(Source::Error error, QString const& errorString)
 
 void Source::httpReady(int id, bool error)
 {
+    QByteArray result = http_.readAll();
 
     if(error)
     {
@@ -194,7 +196,6 @@ void Source::httpReady(int id, bool error)
     }
     else
     {
-        QByteArray result = http_.readAll();
         handleHttpData(id, result);
     }
 }
@@ -307,7 +308,7 @@ QString& Source::htmlEntityDecode(QString& string)
         38,
         60,
         62,
-        160,
+        32,
         192,
         193,
         194,