File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ function toRequest(
132132 }
133133 return new Promise < string > ( ( resolve ) => {
134134 let body = '' ;
135+ req . setEncoding ( 'utf-8' ) ;
135136 req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
136137 req . on ( 'end' , ( ) => resolve ( body ) ) ;
137138 } ) ;
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ function toRequest(
142142 body : ( ) =>
143143 new Promise < string > ( ( resolve ) => {
144144 let body = '' ;
145+ req . setEncoding ( 'utf-8' ) ;
145146 req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
146147 req . on ( 'end' , ( ) => resolve ( body ) ) ;
147148 } ) ,
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ function toRequest(
176176 body : ( ) =>
177177 new Promise < string > ( ( resolve ) => {
178178 let body = '' ;
179+ req . setEncoding ( 'utf-8' ) ;
179180 req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
180181 req . on ( 'end' , ( ) => resolve ( body ) ) ;
181182 } ) ,
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ export function createHandler<Context extends OperationContext = undefined>(
126126 }
127127 return new Promise < string > ( ( resolve ) => {
128128 let body = '' ;
129+ ctx . req . setEncoding ( 'utf-8' ) ;
129130 ctx . req . on ( 'data' , ( chunk ) => ( body += chunk ) ) ;
130131 ctx . req . on ( 'end' , ( ) => resolve ( body ) ) ;
131132 } ) ;
You can’t perform that action at this time.
0 commit comments