T1ckbase commited on
Commit
b0c01ee
·
1 Parent(s): 200cfca
Files changed (1) hide show
  1. main.ts +1 -1
main.ts CHANGED
@@ -12,7 +12,7 @@ app.get('/', (c) => c.text('Hello Hono!'));
12
  app.post('*', async (c) => {
13
  const url = new URL(c.req.url);
14
  const targetPath = url.pathname + url.search;
15
- const targetUrl = `${c.req.header('base-url') ?? HF_API_URL}${targetPath}`;
16
 
17
  const headers = new Headers(c.req.raw.headers);
18
  headers.delete('Authorization');
 
12
  app.post('*', async (c) => {
13
  const url = new URL(c.req.url);
14
  const targetPath = url.pathname + url.search;
15
+ const targetUrl = `${HF_API_URL}${targetPath}`;
16
 
17
  const headers = new Headers(c.req.raw.headers);
18
  headers.delete('Authorization');