Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions test/ReverseProxy.FunctionalTests/HeaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ await test.Invoke(async proxyUri =>
await stream.WriteAsync(Encoding.ASCII.GetBytes($"Referer: \r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes($"custom: \r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
var buffer = new byte[4096];
var responseBuilder = new StringBuilder();
while (true)
Expand Down Expand Up @@ -178,7 +177,6 @@ await test.Invoke(async proxyUri =>
await stream.WriteAsync(Encoding.ASCII.GetBytes($"Content-Length: 0\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes($"Connection: close\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
var buffer = new byte[4096];
var responseBuilder = new StringBuilder();
while (true)
Expand Down Expand Up @@ -479,7 +477,6 @@ await test.Invoke(async proxyUri =>

[Theory]
[MemberData(nameof(RequestMultiHeadersData))]
[ActiveIssue("https://github.com/dotnet/yarp/issues/1887", TestPlatforms.MacCatalyst | TestPlatforms.OSX)]
public async Task MultiValueRequestHeaders(string headerName, string[] values, string expectedValues)
{
var proxyTcs = new TaskCompletionSource<int>(TaskCreationOptions.RunContinuationsAsynchronously);
Expand Down Expand Up @@ -543,7 +540,6 @@ await test.Invoke(async proxyUri =>

await stream.WriteAsync(Encoding.ASCII.GetBytes($"Connection: close\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes($"\r\n"));
var response = await new StreamReader(stream).ReadToEndAsync();

await proxyTcs.Task;
Expand Down Expand Up @@ -685,7 +681,6 @@ await test.Invoke(async proxyUri =>
await stream.WriteAsync(Encoding.ASCII.GetBytes($"Content-Length: 0\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes($"Connection: close\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
await stream.WriteAsync(Encoding.ASCII.GetBytes("\r\n"));
var response = await new StreamReader(stream).ReadToEndAsync();

Assert.Null(proxyError);
Expand Down
Loading