mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +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 newUrl = this.prepareUrl(url, params);
|
||||||
let body = null;
|
let body = null;
|
||||||
if (paramsCopy && paramsCopy.body) {
|
if (paramsCopy && paramsCopy.body) {
|
||||||
console.log(paramsCopy.body);
|
|
||||||
body = JSON.stringify(paramsCopy.body);
|
body = JSON.stringify(paramsCopy.body);
|
||||||
}
|
}
|
||||||
return this.request(method, newUrl, { body });
|
return this.request(method, newUrl, { body });
|
||||||
}
|
}
|
||||||
|
|
||||||
post(url, params) {
|
post(url, params) {
|
||||||
return this._putOrPost(url,params,'post')
|
return this._putOrPost(url, params, 'post');
|
||||||
}
|
}
|
||||||
|
|
||||||
put(url, params){
|
put(url, params){
|
||||||
return this._putOrPost(url,params,'put')
|
return this._putOrPost(url, params, 'put');
|
||||||
}
|
}
|
||||||
|
|
||||||
defaults(options) {
|
defaults(options) {
|
||||||
|
Loading…
Reference in New Issue
Block a user