summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/DotNetOpenAuth/OpenId/UriIdentifier.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth/OpenId/UriIdentifier.cs b/src/DotNetOpenAuth/OpenId/UriIdentifier.cs
index 7bd7dae..f5ecd4f 100644
--- a/src/DotNetOpenAuth/OpenId/UriIdentifier.cs
+++ b/src/DotNetOpenAuth/OpenId/UriIdentifier.cs
@@ -418,6 +418,9 @@ namespace DotNetOpenAuth.OpenId {
canonicalUri = null;
try {
uri = DoSimpleCanonicalize(uri, forceHttpsDefaultScheme, out schemePrepended);
+ if (schemeSubstitution) {
+ uri = NormalSchemeToSpecialRoundTrippingScheme(uri);
+ }
// Use a UriBuilder because it helps to normalize the URL as well.
return TryCanonicalize(uri, out canonicalUri);
@@ -504,10 +507,6 @@ namespace DotNetOpenAuth.OpenId {
schemePrepended = true;
}
- if (schemeSubstitution) {
- uri = NormalSchemeToSpecialRoundTrippingScheme(uri);
- }
-
return uri;
}