@@ -37,7 +37,7 @@ export class TransferHttp {
3737 * Performs a request with `post` http method.
3838 */
3939 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 ) => {
4141 return this . http . post ( url , body , options ) ;
4242 } ) ;
4343 }
@@ -46,7 +46,7 @@ export class TransferHttp {
4646 */
4747 put ( url : string , body : any , options ?: RequestOptionsArgs ) : Observable < any > {
4848
49- return this . getPostData ( url , body , options , ( url : string , options : RequestOptionsArgs ) => {
49+ return this . getPostData ( url , body , options , ( url : string , body : any , options : RequestOptionsArgs ) => {
5050 return this . http . put ( url , body , options ) ;
5151 } ) ;
5252 }
@@ -62,7 +62,7 @@ export class TransferHttp {
6262 * Performs a request with `patch` http method.
6363 */
6464 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 ) => {
6666 return this . http . patch ( url , body . options ) ;
6767 } ) ;
6868 }
0 commit comments