Skip to content

Commit

Permalink
fix: removed toString('utf-8') in bahvior-router. (#535)
Browse files Browse the repository at this point in the history
Co-authored-by: Robb Lovell <[email protected]>
  • Loading branch information
robblovell and Robb Lovell authored Sep 22, 2022
1 parent 6666fb5 commit c30fc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behavior-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class BehaviorRouter {
}

if (response.bodyEncoding === 'base64') {
res.end(Buffer.from(response.body ?? '', 'base64').toString('utf-8'));
res.end(Buffer.from(response.body ?? '', 'base64'));
} else {
res.end(response.body);
}
Expand Down

0 comments on commit c30fc10

Please sign in to comment.