Skip to content

Commit

Permalink
fix: test with bigger buffer due to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
pentreathm committed Sep 30, 2024
1 parent bbfab54 commit 8070a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/handlers/content-file-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function bufferStream(stream: Readable, maxBytes: number): Promise<Buffer>
async function contentItemHeaders(content: ContentItem, hashId: string) {
const stream: Readable = await content.asRawStream()
// Buffer the first part of the stream to detect MIME type
const maxBytes = 4100
const maxBytes = 16 * 1024
const buffer = await bufferStream(stream, maxBytes)
const mime = await fromBuffer(buffer)
// const mime = await fromStream(stream)
Expand Down

0 comments on commit 8070a5c

Please sign in to comment.