summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo (C10uD) <c10ud.dev@gmail.com>2011-05-10 10:20:52 +0200
committerRiccardo (C10uD) <c10ud.dev@gmail.com>2011-05-10 10:20:52 +0200
commit6f2bd80e7f9e6f4c8945b9f64523262e912d1848 (patch)
tree9df188dbbd384281b8c28d43db97d435ad05cac4
parent4353480a4f5cba92bed3e16bc362dbc037525ceb (diff)
Prevent strange server errors with http requests (see emesene#516). Thanks ammarabdulsalam
-rw-r--r--papyon/gnet/protocol/HTTP.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/papyon/gnet/protocol/HTTP.py b/papyon/gnet/protocol/HTTP.py
index 592ba6b..0628d34 100644
--- a/papyon/gnet/protocol/HTTP.py
+++ b/papyon/gnet/protocol/HTTP.py
@@ -115,8 +115,8 @@ class HTTP(gobject.GObject):
self._setup_transport()
def _on_request_sent(self, transport, request, length):
- assert(str(self._outgoing_queue[0]) == request)
self._waiting_response = True
+ assert(str(self._outgoing_queue[0]) == request)
self.emit("request-sent", self._outgoing_queue[0])
def _on_response_received(self, parser, response):