Skip to content

Commit 9cb8b7f

Browse files
committed
chore: fix build
1 parent c000066 commit 9cb8b7f

File tree

1 file changed

+1
-2
lines changed
  • packages/server/src/routes/routing/v1/ipns

1 file changed

+1
-2
lines changed

packages/server/src/routes/routing/v1/ipns/get.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ export default function getIpnsV1 (fastify: FastifyInstance, helia: Helia): void
6161

6262
return await reply
6363
.header('Content-Type', 'application/vnd.ipfs.ipns-record')
64-
// one cannot simply send rawRecord https://github.com/fastify/fastify/issues/5118
65-
.send(Buffer.from(rawRecord, 0, rawRecord.byteLength))
64+
.send(rawRecord)
6665
} catch (err: any) {
6766
if (err.code === 'ERR_NOT_FOUND' || err.errors?.[0].code === 'ERR_NOT_FOUND' ||
6867
err.name === 'NotFoundError' || err.errors?.[0].name === 'NotFoundError'

0 commit comments

Comments
 (0)