Skip to content

Commit

Permalink
remove duplicate sharing value
Browse files Browse the repository at this point in the history
  • Loading branch information
davetimmins committed Jul 29, 2018
1 parent e62c941 commit ec16be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Anywhere.ArcGIS/Operation/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public string BuildAbsoluteUrl(string rootUrl)
if (string.IsNullOrWhiteSpace(rootUrl)) throw new ArgumentNullException("rootUrl", "rootUrl is null.");

return IsFederated
? (DontForceHttps ? rootUrl.Replace("sharing/rest/", "") + "sharing/rest/" : rootUrl.Replace("http://", "https://").Replace("sharing/rest/", "") + "sharing/rest/") + RelativeUrl.Replace("tokens/", "")
? (DontForceHttps ? rootUrl.Replace("sharing/rest/", "").Replace("sharing/", "") + "sharing/rest/" : rootUrl.Replace("http://", "https://").Replace("sharing/rest/", "").Replace("sharing/", "") + "sharing/rest/") + RelativeUrl.Replace("tokens/", "")
: (DontForceHttps ? rootUrl : rootUrl.Replace("http://", "https://")) + RelativeUrl;
}
}
Expand Down

0 comments on commit ec16be2

Please sign in to comment.