Skip to content

Commit 5bf7eb6

Browse files
mzaneleemlee-ada
andauthoredMay 10, 2023
fix: support application/x-gzip metadata in html report (#3333)
Co-authored-by: Michael Lee <michael.lee@ada.com>
1 parent fde628a commit 5bf7eb6

File tree

1 file changed

+1
-1
lines changed
  • packages/ui/client/composables/client

1 file changed

+1
-1
lines changed
 

‎packages/ui/client/composables/client/static.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function createStaticClient(): VitestClient {
7474
async function registerMetadata() {
7575
const res = await fetch(window.METADATA_PATH!)
7676
const contentType = res.headers.get('content-type')?.toLowerCase() || ''
77-
if (contentType.includes('application/gzip')) {
77+
if (contentType.includes('application/gzip') || contentType.includes('application/x-gzip')) {
7878
const compressed = new Uint8Array(await res.arrayBuffer())
7979
const decompressed = strFromU8(decompressSync(compressed))
8080
metadata = parse(decompressed) as HTMLReportMetadata

0 commit comments

Comments
 (0)
Please sign in to comment.