From d21a3834ee8ff24d64111abdf2be4085c7591244 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Thu, 10 Oct 2013 19:48:50 +0100 Subject: [PATCH] Correction to the HTTP method to posting snapshot requests --- lib/api/snapshot.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/api/snapshot.js b/lib/api/snapshot.js index a24a6bf..890f06b 100644 --- a/lib/api/snapshot.js +++ b/lib/api/snapshot.js @@ -1,5 +1,3 @@ -snapshot.js - var extend = require('extend'); var util = require('util'); var v8type = require('v8type'); @@ -42,7 +40,7 @@ snapshot_api.prototype.add_snapshot = function(snapshot, callback){ - this.request('POST', '/graph/snapshot', {body: snapshot}, callback); + this.request('GET', '/graph/snapshot', {query: snapshot}, callback); };