Skip to content

Commit cfa959c

Browse files
authored
Update api.ts
1 parent 1f199a6 commit cfa959c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ export async function pushErrMsg(msg: string, timeout: number = 7000) {
397397

398398
// **************************************** Network ****************************************
399399
export async function forwardProxy(
400-
url: string, method: string, payload: any,
401-
headers: any[], timeout: number = 7000, contentType: string = "text/html"
400+
url: string, method: string = 'GET', payload: any = {},
401+
headers: any[] = [], timeout: number = 7000, contentType: string = "text/html"
402402
): Promise<IResForwardProxy> {
403403
let data = {
404404
url: url,

0 commit comments

Comments
 (0)