[Groonga-commit] groonga/gcs [master] Return response with the content type application/json from batch API

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 18 13:16:55 JST 2012


YUKI Hiroshi	2012-10-18 13:16:55 +0900 (Thu, 18 Oct 2012)

  New Revision: 06b60b0e7fdc1dd37baa6c8c34f582d4c084d179
  https://github.com/groonga/gcs/commit/06b60b0e7fdc1dd37baa6c8c34f582d4c084d179

  Log:
    Return response with the content type application/json from batch API

  Modified files:
    lib/api/2011-02-01/batch.js

  Modified: lib/api/2011-02-01/batch.js (+1 -0)
===================================================================
--- lib/api/2011-02-01/batch.js    2012-10-17 19:23:16 +0900 (6e21a2b)
+++ lib/api/2011-02-01/batch.js    2012-10-18 13:16:55 +0900 (afb1d0a)
@@ -58,6 +58,7 @@ exports.createHandler = function(context) {
 
     processor.load(batches)
       .next(function(result) {
+        response.contentType('application/json');
         response.send(JSON.stringify(result));
       })
       .error(function(error) {
-------------- next part --------------
HTML����������������������������...
Download 



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