Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-09-17 11:20:14 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-09-17 11:20:14 (GMT)
commit595bcf11f40b09d8bc6e9e27335e927f56d224cc (patch)
tree576acd6fedc8ed96fe08a45df7cd601ef02e5207
parent039f54130fdd472b0a40c834f67e2fc7248ad564 (diff)
Send HTTP status on "subcribe" command start
-rw-r--r--sugar_network/resources/volume.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar_network/resources/volume.py b/sugar_network/resources/volume.py
index c6ac59b..ac9c7ef 100644
--- a/sugar_network/resources/volume.py
+++ b/sugar_network/resources/volume.py
@@ -157,6 +157,9 @@ class Commands(object):
return self._pull_events(only_commits)
def _pull_events(self, only_commits):
+ # Otherwise, gevent's WSGI server doesn't sent HTTP status
+ yield '\n'
+
while True:
event = self._notifier.get()