File tree 4 files changed +4
-0
lines changed
4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ function toRequest(
132
132
}
133
133
return new Promise < string > ( ( resolve ) => {
134
134
let body = '' ;
135
+ req . setEncoding ( 'utf-8' ) ;
135
136
req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
136
137
req . on ( 'end' , ( ) => resolve ( body ) ) ;
137
138
} ) ;
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ function toRequest(
142
142
body : ( ) =>
143
143
new Promise < string > ( ( resolve ) => {
144
144
let body = '' ;
145
+ req . setEncoding ( 'utf-8' ) ;
145
146
req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
146
147
req . on ( 'end' , ( ) => resolve ( body ) ) ;
147
148
} ) ,
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ function toRequest(
176
176
body : ( ) =>
177
177
new Promise < string > ( ( resolve ) => {
178
178
let body = '' ;
179
+ req . setEncoding ( 'utf-8' ) ;
179
180
req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
180
181
req . on ( 'end' , ( ) => resolve ( body ) ) ;
181
182
} ) ,
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ export function createHandler<Context extends OperationContext = undefined>(
126
126
}
127
127
return new Promise < string > ( ( resolve ) => {
128
128
let body = '' ;
129
+ ctx . req . setEncoding ( 'utf-8' ) ;
129
130
ctx . req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
130
131
ctx . req . on ( 'end' , ( ) => resolve ( body ) ) ;
131
132
} ) ;
You can’t perform that action at this time.
0 commit comments