Skip to content

Commit 18f677f

Browse files
committed
remove responseType option
1 parent b57866d commit 18f677f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function postBinary(
7676
headers["Content-Type"] = contentType;
7777
headers["User-Agent"] = userAgent;
7878
return axios
79-
.post(url, data, { headers, responseType: "text" })
79+
.post(url, data, { headers })
8080
.then(res => res.data)
8181
.catch(wrapError);
8282
});
@@ -86,7 +86,7 @@ export function del(url: string, headers: any): Promise<any> {
8686
headers["User-Agent"] = userAgent;
8787

8888
return axios
89-
.delete(url, { headers, responseType: "text" })
89+
.delete(url, { headers })
9090
.then(res => res.data)
9191
.catch(wrapError);
9292
}

0 commit comments

Comments
 (0)