-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Pass Uri.IdnHost to WinHttpConnect #28849
Changes from 6 commits
4f1a60d
8a9cbee
c5e4fdc
9009d2b
940f497
caed777
3f21a59
99648b0
9c80ffe
91ba27d
850743d
b3cdff8
6973787
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1659,7 +1659,7 @@ await LoopbackServer.CreateServerAsync(async (server, url) => | |
} | ||
}); | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't know why...in my vs diff tool these changes weren't visible, should i remove? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, please remove any changes that aren't part of the PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
[Fact] | ||
public async Task GetAsync_InvalidChunkTerminator_ThrowsHttpRequestException() | ||
{ | ||
|
@@ -1675,8 +1675,8 @@ await LoopbackServer.CreateClientAndServerAsync(async url => | |
"\r\n" + | ||
"5\r\n" + | ||
"hello" + // missing \r\n terminator | ||
//"5\r\n" + | ||
//"world" + // missing \r\n terminator | ||
//"5\r\n" + | ||
//"world" + // missing \r\n terminator | ||
"0\r\n" + | ||
"\r\n")); | ||
} | ||
|
@@ -3035,8 +3035,8 @@ await LoopbackServer.CreateServerAsync(async (server, url) => | |
HttpResponseMessage response = await client.GetAsync(url); | ||
Assert.True(response.StatusCode == HttpStatusCode.OK); | ||
} | ||
} | ||
await serverTask; | ||
} | ||
await serverTask; | ||
}, options); | ||
await proxy; | ||
} | ||
|
@@ -3137,5 +3137,25 @@ await LoopbackServer.CreateServerAsync(async (server, rootUrl) => | |
}); | ||
} | ||
#endregion | ||
|
||
[OuterLoop] | ||
[Fact] | ||
public async Task GetAsync_IdnHostName() | ||
{ | ||
HttpClientHandler handler = CreateHttpClientHandler(); | ||
using (var client = new HttpClient(handler)) | ||
{ | ||
/* | ||
international version of the Starbucks website | ||
Punnycode: xn--oy2b35ckwhba574atvuzkc.com | ||
*/ | ||
string idn = "\uc2a4\ud0c0\ubc85\uc2a4\ucf54\ub9ac\uc544.com"; | ||
using (HttpResponseMessage response = await client.GetAsync("http://" + idn)) | ||
{ | ||
response.EnsureSuccessStatusCode(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @davidsh i added There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In There are two files which will actually invoke all the test cases. Even though you only modified the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Caesar1995 understood TYVM! |
||
} | ||
} | ||
} | ||
|
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With regard to this i'm writing a manual test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidsh @rmkerr @Caesar1995 without
[]
ipv6http://[::1234]:8080
andhttp://[::1234]
tests fails withERROR_INTERNET_INVALID_URL
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Caesar1995 related to https://github.com/dotnet/corefx/issues/28863#issue-311719169 if this PR will be merged i think we'll need to remove workaround also here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks for bringing this up! I will update that issue with this PR.