Skip to content

Commit c30fc10

Browse files
robblovellRobb Lovell
andauthored
fix: removed toString('utf-8') in bahvior-router. (#535)
Co-authored-by: Robb Lovell <robbl@vidigami.com>
1 parent 6666fb5 commit c30fc10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/behavior-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class BehaviorRouter {
199199
}
200200

201201
if (response.bodyEncoding === 'base64') {
202-
res.end(Buffer.from(response.body ?? '', 'base64').toString('utf-8'));
202+
res.end(Buffer.from(response.body ?? '', 'base64'));
203203
} else {
204204
res.end(response.body);
205205
}

0 commit comments

Comments
 (0)