Skip to content

Commit

Permalink
Fix CodeMaid wrong formatting double empty lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
molnard committed Feb 2, 2024
1 parent c1d664a commit 1da6a28
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,11 @@ public async Task RedirectSupportAsync(int maximumRedirects)
Assert.Equal(expectedLine, actualLine);
}


// We respond to the client with the following content.
Debug.WriteLine("[server] Send response for the request.");

//<Auto-Generated - instruct CodeMaid to not remove the double empty line below.>
string serverResponse1 = """
HTTP/1.1 302 Found
Server: GitHub.com
Expand All @@ -283,6 +286,8 @@ public async Task RedirectSupportAsync(int maximumRedirects)
""".ReplaceLineEndings("\r\n");

//</Auto-Generated>

await serverWriter1.WriteAsync(serverResponse1.AsMemory(), timeoutCts.Token);
await serverWriter1.FlushAsync().WaitAsync(timeoutCts.Token);
serverWriter1.Close();
Expand Down

0 comments on commit 1da6a28

Please sign in to comment.