fix(dev): apply headers from route rules for static assets #6484
Annotations
5 errors
test/presets/nitro-dev.test.ts > nitro:preset:nitro-dev > useStorage (with base):
test/tests.ts#L476
AssertionError: expected { statusCode: 500, stack: [] } to be 'world' // Object.is equality
- Expected:
"world"
+ Received:
Object {
"stack": Array [],
"statusCode": 500,
}
❯ test/tests.ts:476:25
|
test/presets/nitro-dev.test.ts > nitro:preset:nitro-dev > static asset headers:
test/presets/nitro-dev.test.ts#L33
AssertionError: expected { 'accept-ranges': 'bytes', …(8) } to match object { 'accept-ranges': 'bytes', …(9) }
- Expected
+ Received
Object {
"accept-ranges": "bytes",
"cache-control": "public, max-age=0",
"connection": "keep-alive",
"content-length": "7",
"content-type": "text/plain; charset=UTF-8",
"date": Any<String>,
- "etag": "W/\"7-18df5a508c5\"",
+ "etag": "W/\"7-19308a09666\"",
"keep-alive": "timeout=5",
"last-modified": Any<String>,
- "x-build-header": "works",
}
❯ test/presets/nitro-dev.test.ts:33:45
|
ci (ubuntu-latest)
Process completed with exit code 1.
|
ci (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
ci (windows-latest)
The operation was canceled.
|