[Groonga-commit] droonga/express-droonga at fe543df [master] Return only the body via HTTP streaming commands

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 6 18:55:39 JST 2014


YUKI Hiroshi	2014-01-06 18:55:39 +0900 (Mon, 06 Jan 2014)

  New Revision: fe543dff786aad3c240ca1da4c89c72584504487
  https://github.com/droonga/express-droonga/commit/fe543dff786aad3c240ca1da4c89c72584504487

  Message:
    Return only the body via HTTP streaming commands

  Modified files:
    lib/adapter/command.js

  Modified: lib/adapter/command.js (+2 -2)
===================================================================
--- lib/adapter/command.js    2014-01-06 18:44:12 +0900 (0f2dded)
+++ lib/adapter/command.js    2014-01-06 18:55:39 +0900 (5f85558)
@@ -159,8 +159,8 @@ HTTPStreaming.extend = function(targetClass) {
       'Transfer-Encoding': 'chunked'
     });
 
-    var onNotify = function(data) {
-      response.write(JSON.stringify(data) + self.delimiter);
+    var onNotify = function(message) {
+      response.write(JSON.stringify(message.body) + self.delimiter);
     };
     connection.on(this.notification, onNotify);
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index