diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-27 18:50:35 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-27 18:50:35 -0800 |
commit | daf0b05fba9cae039ee631bbe008f8225c065ffc (patch) | |
tree | 0a7382190c59f717b5e4f5a42590c12f03263d1b /src | |
parent | 9617dff693514a5c41d0254700dd71c18f8500ce (diff) | |
download | DotNetOpenAuth-daf0b05fba9cae039ee631bbe008f8225c065ffc.zip DotNetOpenAuth-daf0b05fba9cae039ee631bbe008f8225c065ffc.tar.gz DotNetOpenAuth-daf0b05fba9cae039ee631bbe008f8225c065ffc.tar.bz2 |
Fixed MessagingUtilities.GetRequestUrlFromContext() to be smarter about web farms and HTTPS proxies.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/Messaging/MessagingUtilities.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs b/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs index fe8d6c2..3a92aef 100644 --- a/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs +++ b/src/DotNetOpenAuth/Messaging/MessagingUtilities.cs @@ -106,14 +106,7 @@ namespace DotNetOpenAuth.Messaging { Contract.Requires<InvalidOperationException>(HttpContext.Current != null && HttpContext.Current.Request != null, MessagingStrings.HttpContextRequired); HttpContext context = HttpContext.Current; - // We use Request.Url for the full path to the server, and modify it - // with Request.RawUrl to capture both the cookieless session "directory" if it exists - // and the original path in case URL rewriting is going on. We don't want to be - // fooled by URL rewriting because we're comparing the actual URL with what's in - // the return_to parameter in some cases. - // Response.ApplyAppPathModifier(builder.Path) would have worked for the cookieless - // session, but not the URL rewriting problem. - return new Uri(context.Request.Url, context.Request.RawUrl); + return HttpRequestInfo.GetPublicFacingUrl(context.Request, context.Request.ServerVariables); } /// <summary> |