GeezerVison is showing github.com — chore: generate · rodboev/opencode@414c037
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/opencode/src/cli/cmd
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/run.ts +2-6Lines changed: 2 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -843,9 +843,7 @@ export const RunCommand = effectCmd({ |
843 | 843 | const headers = new Headers(request.headers) |
844 | 844 | const auth = ServerAuth.header() |
845 | 845 | if (auth) headers.set("Authorization", auth) |
846 | | - return Server.Default().app.fetch( |
847 | | - new Request(request, { headers }), |
848 | | - ) |
| 846 | + return Server.Default().app.fetch(new Request(request, { headers })) |
849 | 847 | }) as typeof globalThis.fetch |
850 | 848 |
|
851 | 849 | try { |
@@ -883,9 +881,7 @@ export const RunCommand = effectCmd({ |
883 | 881 | const headers = new Headers(request.headers) |
884 | 882 | const auth = ServerAuth.header() |
885 | 883 | if (auth) headers.set("Authorization", auth) |
886 | | - return Server.Default().app.fetch( |
887 | | - new Request(request, { headers }), |
888 | | - ) |
| 884 | + return Server.Default().app.fetch(new Request(request, { headers })) |
889 | 885 | }) as typeof globalThis.fetch |
890 | 886 | const sdk = createOpencodeClient({ |
891 | 887 | baseUrl: "http://opencode.internal", |
|