Skip to content

Commit 309b616

Browse files
markoj21MarkPieszak
authored andcommitted
Update transfer-http.ts (#321)
Fixed the missing body parameters, which caused issues with the options.
1 parent 8b5d2e0 commit 309b616

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/modules/transfer-http/transfer-http.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)