From 412c6cea8ae586e8e8547eb769fb1205feb1a435 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 14 May 2014 09:47:57 -0400 Subject: [PATCH] feature(rest) read: log if query --- lib/client/rest.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/client/rest.js b/lib/client/rest.js index c74f018b..aefbb239 100644 --- a/lib/client/rest.js +++ b/lib/client/rest.js @@ -37,10 +37,13 @@ var Util, DOM, CloudFunc, CloudCmd; }; this.read = function(url, callback) { + var isQuery = Util.isContainStr(url, '?'); + sendRequest({ method : 'GET', url : CloudFunc.FS + url, - callback : callback + callback : callback, + notLog : !isQuery }); };