1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

console.log remove from requests.js

This commit is contained in:
Cevo 2015-09-07 16:36:31 +02:00
parent 66cd4a1d7b
commit 86306fc089

View File

@ -144,18 +144,17 @@ class Requests {
let newUrl = this.prepareUrl(url, params);
let body = null;
if (paramsCopy && paramsCopy.body) {
console.log(paramsCopy.body);
body = JSON.stringify(paramsCopy.body);
}
return this.request(method, newUrl, { body });
}
post(url, params) {
return this._putOrPost(url,params,'post')
return this._putOrPost(url, params, 'post');
}
put(url, params){
return this._putOrPost(url,params,'put')
return this._putOrPost(url, params, 'put');
}
defaults(options) {