Update api.ts
This commit is contained in:
parent
1f199a6dcf
commit
cfa959c1a8
1 changed files with 2 additions and 2 deletions
|
@ -397,8 +397,8 @@ export async function pushErrMsg(msg: string, timeout: number = 7000) {
|
||||||
|
|
||||||
// **************************************** Network ****************************************
|
// **************************************** Network ****************************************
|
||||||
export async function forwardProxy(
|
export async function forwardProxy(
|
||||||
url: string, method: string, payload: any,
|
url: string, method: string = 'GET', payload: any = {},
|
||||||
headers: any[], timeout: number = 7000, contentType: string = "text/html"
|
headers: any[] = [], timeout: number = 7000, contentType: string = "text/html"
|
||||||
): Promise<IResForwardProxy> {
|
): Promise<IResForwardProxy> {
|
||||||
let data = {
|
let data = {
|
||||||
url: url,
|
url: url,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue