HTML decode URL.
This commit is contained in:
parent
3e9f251618
commit
f35dd45ea6
|
|
@ -143,6 +143,7 @@ namespace E2ETests
|
||||||
var startIndex = responseContent.IndexOf("[[<a href=\"", 0) + "[[<a href=\"".Length;
|
var startIndex = responseContent.IndexOf("[[<a href=\"", 0) + "[[<a href=\"".Length;
|
||||||
var endIndex = responseContent.IndexOf("\">link</a>]]", startIndex);
|
var endIndex = responseContent.IndexOf("\">link</a>]]", startIndex);
|
||||||
var confirmUrl = responseContent.Substring(startIndex, endIndex - startIndex);
|
var confirmUrl = responseContent.Substring(startIndex, endIndex - startIndex);
|
||||||
|
confirmUrl = WebUtility.HtmlDecode(confirmUrl);
|
||||||
response = httpClient.GetAsync(confirmUrl).Result;
|
response = httpClient.GetAsync(confirmUrl).Result;
|
||||||
ThrowIfResponseStatusNotOk(response);
|
ThrowIfResponseStatusNotOk(response);
|
||||||
responseContent = response.Content.ReadAsStringAsync().Result;
|
responseContent = response.Content.ReadAsStringAsync().Result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue