File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private async void ProcessInputStream()
87
87
current += await _input . ReadBlockAsync ( buffer , current , 1 ) ;
88
88
}
89
89
90
- var headersContent = Encoding . ASCII . GetString ( Encoding . ASCII . GetBytes ( buffer , 0 , current ) ) ;
90
+ var headersContent = new string ( buffer , 0 , current ) ;
91
91
var headers = headersContent . Split ( HeaderKeys , StringSplitOptions . RemoveEmptyEntries ) ;
92
92
long length = 0 ;
93
93
for ( var i = 0 ; i < headers . Length ; i += 2 )
@@ -104,7 +104,7 @@ private async void ProcessInputStream()
104
104
105
105
await _input . ReadBlockAsync ( requestBuffer , 0 , requestBuffer . Length ) ;
106
106
107
- var payload = Encoding . ASCII . GetString ( Encoding . ASCII . GetBytes ( requestBuffer ) ) ;
107
+ var payload = new string ( requestBuffer ) ;
108
108
109
109
HandleRequest ( payload ) ;
110
110
}
You can’t perform that action at this time.
0 commit comments