Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit adbdaf4

Browse files
hughbestephentoub
authored andcommitted
Fix product bug causing Httplistener test failures
1 parent 8976256 commit adbdaf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/System.Net.HttpListener/src/System/Net/Windows/HttpListener.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ private ArrayList BuildChallenge(AuthenticationSchemes authenticationScheme, ulo
16281628

16291629
if ((authenticationScheme & AuthenticationSchemes.Basic) != 0)
16301630
{
1631-
AddChallenge(ref challenges, "Basic realm =\"" + Realm + "\"");
1631+
AddChallenge(ref challenges, "Basic realm=\"" + Realm + "\"");
16321632
}
16331633

16341634
return challenges;

src/System.Net.HttpListener/tests/AuthenticationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public async Task BasicAuthentication_InvalidRequest_SendsStatusCodeClient(strin
7171

7272
if (statusCode == HttpStatusCode.Unauthorized)
7373
{
74-
Assert.Equal("Basic realm =\"\"", response.Headers.WwwAuthenticate.ToString());
74+
Assert.Equal("Basic realm=\"\"", response.Headers.WwwAuthenticate.ToString());
7575
}
7676
else
7777
{
@@ -103,7 +103,7 @@ public async Task BasicAuthentication_RealmSet_SendsChallengeToClient(string rea
103103
using (var client = new HttpClient())
104104
{
105105
HttpResponseMessage response = await AuthenticationFailure(client, HttpStatusCode.Unauthorized);
106-
Assert.Equal($"Basic realm =\"{realm}\"", response.Headers.WwwAuthenticate.ToString());
106+
Assert.Equal($"Basic realm=\"{realm}\"", response.Headers.WwwAuthenticate.ToString());
107107
}
108108
}
109109

0 commit comments

Comments
 (0)