YUKI Hiroshi
null+****@clear*****
Mon Dec 10 18:54:03 JST 2012
YUKI Hiroshi 2012-12-10 18:54:03 +0900 (Mon, 10 Dec 2012) New Revision: 44466afb3a47e4d409375678a346e1c358bbd5d2 https://github.com/groonga/gcs/commit/44466afb3a47e4d409375678a346e1c358bbd5d2 Log: Upload XML SDF correctly Modified files: bin/gcs-post-sdf Modified: bin/gcs-post-sdf (+3 -1) =================================================================== --- bin/gcs-post-sdf 2012-12-10 18:52:32 +0900 (32e4e27) +++ bin/gcs-post-sdf 2012-12-10 18:54:03 +0900 (75af52b) @@ -47,11 +47,13 @@ client.assertDomainExists(function() { var batches = fs.readFileSync(sourceFile, 'UTF-8'); if (format == 'xml') batches = xml.toJSON(batches); + else + batches = JSON.parse(batches); client.setupDocumentsAPI(function(documentsAPI) { documentsAPI.DocumentsBatch( { - Docs: JSON.parse(batches) + Docs: batches }, function(error, response) { if (error) -------------- next part -------------- HTML����������������������������... Télécharger