File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
ui/src/routes/_orchestrator/repos/$namespace/projects/$projectName Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,18 @@ export const Route = createFileRoute('/_orchestrator/repos/$namespace/projects/$
66 handlers : {
77 POST : async ( { request, params } ) => {
88 try {
9- const body = await request . json ( ) ;
9+
10+ // Clone headers and strip problematic ones
11+ const headers = new Headers ( request . headers ) ;
12+ headers . delete ( 'content-length' ) ;
13+ headers . delete ( 'transfer-encoding' ) ;
14+
1015 const response = await fetch ( `${ process . env . ORCHESTRATOR_BACKEND_URL } /repos/${ params . namespace } /projects/${ params . projectName } /jobs/${ params . jobId } /set-status` , {
1116 method : 'POST' ,
12- headers : request . headers ,
13- body : JSON . stringify ( body )
17+ headers : headers ,
18+ body : request . body ,
19+ // @ts -expect-error: 'duplex' is required by Node/undici for streaming bodies
20+ duplex : 'half' ,
1421 } ) ;
1522
1623 return response ;
You can’t perform that action at this time.
0 commit comments