Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ikasoba committed Nov 7, 2023
1 parent a45c432 commit c7d313b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/request.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { decodeBase64 } from "encoding/base64.ts";

export interface RequesterRequest {
method: string;
url: string;
Expand All @@ -13,7 +15,7 @@ export const createRequester = (fetch: FetchApi) => {
const res = await fetch(req.url, {
method: req.method,
headers: req.headers,
body: req.body,
body: req.body && decodeBase64(req.body),
});

if (!res.ok) {
Expand Down

0 comments on commit c7d313b

Please sign in to comment.