Skip to content

Commit

Permalink
fetch method 대소문자 이슈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CirnoV committed Jun 17, 2024
1 parent ed1d0a6 commit e0960a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layouts/rest-api/endpoint/playground/try/Req.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ export default function Req({
? null
: JSON.stringify(reqBody);
const reqUrl = createUrl(apiHost, path, reqPath, reqQuery);
const res = await fetch(reqUrl, { method, headers, body });
const res = await fetch(reqUrl, {
method: method.toUpperCase(),
headers,
body,
});
return await responseToRes(res);
})
}
Expand Down

0 comments on commit e0960a9

Please sign in to comment.