mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
console.log remove from requests.js
This commit is contained in:
parent
66cd4a1d7b
commit
86306fc089
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user