49 reply.closed.connect(lambda: self.__replyClosed(reply)) |
49 reply.closed.connect(lambda: self.__replyClosed(reply)) |
50 self.__replies.append(reply) |
50 self.__replies.append(reply) |
51 job.reply(b"text/html", reply) |
51 job.reply(b"text/html", reply) |
52 else: |
52 else: |
53 job.reply(QByteArray(), QBuffer()) |
53 job.reply(QByteArray(), QBuffer()) |
54 # job.fail(QWebEngineUrlRequestJob.UrlNotFound) |
|
55 |
54 |
56 def __replyClosed(self, reply): |
55 def __replyClosed(self, reply): |
57 """ |
56 """ |
58 Private slot handling the closed signal of a reply. |
57 Private slot handling the closed signal of a reply. |
59 |
58 |