Skip to content

Commit

Permalink
fix: support application/x-gzip metadata in html report (#3333)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Lee <michael.lee@ada.com>
  • Loading branch information
mzanelee and mlee-ada committed May 10, 2023
1 parent fde628a commit 5bf7eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/client/composables/client/static.ts
Expand Up @@ -74,7 +74,7 @@ export function createStaticClient(): VitestClient {
async function registerMetadata() {
const res = await fetch(window.METADATA_PATH!)
const contentType = res.headers.get('content-type')?.toLowerCase() || ''
if (contentType.includes('application/gzip')) {
if (contentType.includes('application/gzip') || contentType.includes('application/x-gzip')) {
const compressed = new Uint8Array(await res.arrayBuffer())
const decompressed = strFromU8(decompressSync(compressed))
metadata = parse(decompressed) as HTMLReportMetadata
Expand Down

0 comments on commit 5bf7eb6

Please sign in to comment.