Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #767 from jeschu1/pathpriority
Browse files Browse the repository at this point in the history
Give path priority when supplied
  • Loading branch information
jeschu1 authored Sep 27, 2018
2 parents b76af7e + 5f712b5 commit 2c42ca6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Shared/Cli/OperationArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,13 @@ internal virtual void CreateTargetUri()

queryUrl = buffer.ToString();

// if path is specified we should give the host/path priority
if (!string.IsNullOrWhiteSpace(_queryPath))
{
actualUrl = queryUrl;
}
// If the actual-url override has been set, honor it.
if (!string.IsNullOrEmpty(_urlOverride))
else if (!string.IsNullOrEmpty(_urlOverride))
{
if (Uri.TryCreate(_urlOverride, UriKind.Absolute, out Uri uri))
{
Expand Down

0 comments on commit 2c42ca6

Please sign in to comment.