Skip to content

Commit

Permalink
Update examples for Koa and Fastify
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 9, 2022
1 parent b432589 commit d9ac31a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/README.md
Expand Up @@ -127,7 +127,7 @@ app.route({

reply.status(response.status)

reply.send(response.body)
reply.send(Readable.from(response.body))

return reply
}
Expand Down Expand Up @@ -157,7 +157,7 @@ app.use(async ctx => {
ctx.append(key, value)
})

ctx.body = response.body
ctx.body = Readable.from(response.body)
})

app.listen(4000, () => {
Expand Down

0 comments on commit d9ac31a

Please sign in to comment.