@@ -37,7 +37,7 @@ export class TransferHttp {
37
37
* Performs a request with `post` http method.
38
38
*/
39
39
post ( url : string , body : any , options ?: RequestOptionsArgs ) : Observable < any > {
40
- return this . getPostData ( url , body , options , ( url : string , options : RequestOptionsArgs ) => {
40
+ return this . getPostData ( url , body , options , ( url : string , body : any , options : RequestOptionsArgs ) => {
41
41
return this . http . post ( url , body , options ) ;
42
42
} ) ;
43
43
}
@@ -46,7 +46,7 @@ export class TransferHttp {
46
46
*/
47
47
put ( url : string , body : any , options ?: RequestOptionsArgs ) : Observable < any > {
48
48
49
- return this . getPostData ( url , body , options , ( url : string , options : RequestOptionsArgs ) => {
49
+ return this . getPostData ( url , body , options , ( url : string , body : any , options : RequestOptionsArgs ) => {
50
50
return this . http . put ( url , body , options ) ;
51
51
} ) ;
52
52
}
@@ -62,7 +62,7 @@ export class TransferHttp {
62
62
* Performs a request with `patch` http method.
63
63
*/
64
64
patch ( url : string , body : any , options ?: RequestOptionsArgs ) : Observable < any > {
65
- return this . getPostData ( url , body , options , ( url : string , options : RequestOptionsArgs ) => {
65
+ return this . getPostData ( url , body , options , ( url : string , body : any , options : RequestOptionsArgs ) => {
66
66
return this . http . patch ( url , body . options ) ;
67
67
} ) ;
68
68
}
0 commit comments