Fixed a few issues in E5NetworkMonitor.py. 5_0_x

Sat, 04 Sep 2010 12:36:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 04 Sep 2010 12:36:04 +0200
branch
5_0_x
changeset 557
143bcdc7a959
parent 552
bc2948d7c5f2
child 566
374af4e0c9d5

Fixed a few issues in E5NetworkMonitor.py.

E5Network/E5NetworkMonitor.py file | annotate | diff | comparison | revisions
--- a/E5Network/E5NetworkMonitor.py	Fri Sep 03 18:54:15 2010 +0200
+++ b/E5Network/E5NetworkMonitor.py	Sat Sep 04 12:36:04 2010 +0200
@@ -160,10 +160,10 @@
             self.__requestHeaders.insertRows(0, 1, QModelIndex())
             self.__requestHeaders.setData(
                 self.__requestHeaders.index(0, 0), 
-                header)
+                str(header, "utf-8"))
             self.__requestHeaders.setData(
                 self.__requestHeaders.index(0, 1), 
-                req.rawHeader(header))
+                str(req.rawHeader(header), "utf-8"))
             self.__requestHeaders.item(0, 0).setFlags(
                 Qt.ItemIsSelectable | Qt.ItemIsEnabled)
             self.__requestHeaders.item(0, 1).setFlags(
@@ -281,7 +281,8 @@
         
         # save the reply header data
         for header in reply.rawHeaderList():
-            self.requests[offset].replyHeaders.append((header, reply.rawHeader(header)))
+            self.requests[offset].replyHeaders.append((
+                str(header, "utf-8"), str(reply.rawHeader(header), "utf-8")))
         
         # save reply info to be displayed
         status = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) or 0

eric ide

mercurial