Live video on the AT Protocol

api: fix serving files for trailing-slash urls

+5 -8
+5 -3
js/desktop/src/tests/test-runner.ts
··· 27 27 duration: string, 28 28 privateKey: `0x${string}`, 29 29 ): Promise<boolean> { 30 - const testFuncs = []; 30 + const testsToRun = []; 31 31 for (const test of tests) { 32 32 if (!allTests[test]) { 33 33 throw new Error(`Test ${test} not found`); 34 34 } 35 - testFuncs.push(allTests[test]); 35 + testsToRun.push(test); 36 36 } 37 37 try { 38 38 const results = []; 39 - for (const test of testFuncs) { 39 + for (const testName of testsToRun) { 40 + const test = allTests[testName]; 41 + console.log(`============ running test ${testName} ============`); 40 42 let testProc: ChildProcess | undefined; 41 43 try { 42 44 const { skipNode } = getEnv();
-5
pkg/api/api.go
··· 11 11 "net/http" 12 12 "net/http/httputil" 13 13 "net/url" 14 - "os" 15 14 "strings" 16 15 "sync" 17 16 "time" ··· 118 117 if err1 == nil { 119 118 return file, nil 120 119 } 121 - if !errors.Is(err1, os.ErrNotExist) { 122 - return nil, err1 123 - } 124 - 125 120 return nil, ErrorIndex 126 121 } 127 122