Skip to content

Commit

Permalink
chore: 프록시 리퀘스트 clone 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Xvezda committed May 6, 2024
1 parent e3cb783 commit d87f18b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ app.use('/services/buffer/v1/*', async (c, next) => {
const reqUrl = new URL(c.req.url);
reqUrl.host = 'localhost:8788';

const response = await fetch(reqUrl, {
headers: c.req.header()
});
const response = await fetch(reqUrl, c.req.raw.clone());
c.res = new Response(response.body, response);
}
await next();
Expand Down

0 comments on commit d87f18b

Please sign in to comment.