File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
Common.FunctionalTests/Inprocess
InProcessForwardsCompatWebSite Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public MaxRequestBodySizeTests(PublishedSitesFixture fixture) : base(fixture)
19
19
}
20
20
21
21
[ ConditionalFact ]
22
+ [ RequiresNewHandler ]
22
23
public async Task MaxRequestBodySizeE2EWorks ( )
23
24
{
24
25
var deploymentParameters = Fixture . GetBaseDeploymentParameters ( ) ;
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ public async Task RequestBodyTooLargeChunked()
191
191
{
192
192
while ( true )
193
193
{
194
- await ctx . Request . Body . ReadAsync ( new byte [ 2000 ] ) ;
194
+ var num = await ctx . Request . Body . ReadAsync ( new byte [ 2000 ] ) ;
195
195
}
196
196
}
197
197
catch ( BadHttpRequestException ex )
@@ -205,7 +205,7 @@ public async Task RequestBodyTooLargeChunked()
205
205
{
206
206
await connection . Send (
207
207
"POST / HTTP/1.1" ,
208
- "Content-Length: 1001 " ,
208
+ "Transfer-Encoding: chunked " ,
209
209
"Host: localhost" ,
210
210
"" ,
211
211
"1001" ,
Original file line number Diff line number Diff line change 5
5
<PropertyGroup >
6
6
<TargetFramework >netcoreapp3.0</TargetFramework >
7
7
<TestAssetOutputName >InProcessForwardsCompatWebSite</TestAssetOutputName >
8
+ <DefineConstants >FORWARDCOMPAT</DefineConstants >
8
9
</PropertyGroup >
9
10
10
11
<ItemGroup Condition =" '$(OS)' == 'Windows_NT'" >
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ public static int Main(string[] args)
100
100
case "ConsoleWriteStartServer" :
101
101
Console . WriteLine ( "TEST MESSAGE" ) ;
102
102
return StartServer ( ) ;
103
+ #if ! FORWARDCOMPAT
103
104
case "DecreaseRequestLimit" :
104
105
{
105
106
var host = new WebHostBuilder ( )
@@ -119,6 +120,7 @@ public static int Main(string[] args)
119
120
host . Run ( ) ;
120
121
break ;
121
122
}
123
+ #endif
122
124
default :
123
125
return StartServer ( ) ;
124
126
You can’t perform that action at this time.
0 commit comments