Skip to content

Commit f638af8

Browse files
committed
fixes
1 parent fb1bdd1 commit f638af8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest

test/setup/global-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export default async function globalSetup() {
258258
const staticPort = await findAvailablePort(8000)
259259

260260
const staticServer = createServer((req, res) => {
261-
const pathname = parse(req.url || '').pathname || '/'
261+
const pathname = new URL(req.url || '').pathname || '/'
262262
let filePath = join(inspectorDistDir, pathname === '/' ? 'index.html' : pathname)
263263

264264
// Always disable keep-alive

0 commit comments

Comments
 (0)