Skip to content

Commit

Permalink
fix: explicitly error out on unknown chunk parts
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningEnlightenment committed Jan 18, 2024
1 parent 66b21be commit 51031a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/browser/api/protocol.ts
Expand Up @@ -80,6 +80,8 @@ function convertToRequestBody (uploadData: ProtocolRequest['uploadData']): Reque
// knowledge of the `Session` associated with the current request by
// always pulling `Blob` data out of the default `Session`.
controller.enqueue(await session.defaultSession.getBlobData(chunk.blobUUID));
} else {
throw new Error(`Unknown upload data chunk type: ${chunk.type}`);
}
}
}
Expand Down

0 comments on commit 51031a5

Please sign in to comment.