Skip to content

Commit f992b08

Browse files
author
dustin deus
committed
set utf8 encoding for response body
1 parent 0a25034 commit f992b08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http-data-source.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
282282
headers: request.headers,
283283
signal: request.signal,
284284
})
285+
responseData.body.setEncoding('utf8')
285286

286287
let data = ''
287288
for await (const chunk of responseData.body) {

0 commit comments

Comments
 (0)