Skip to content

Commit

Permalink
fix: Fixed incorrect requestUri generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed May 19, 2024
1 parent f579182 commit 595c7ea
Show file tree
Hide file tree
Showing 209 changed files with 1,007 additions and 208 deletions.
2 changes: 1 addition & 1 deletion src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<PropertyGroup Label="Versioning">
<Version>0.6.5</Version>
<Version>0.6.6</Version>
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerDefaultPreReleaseIdentifiers>dev</MinVerDefaultPreReleaseIdentifiers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static string GenerateMethod(
}};").Inject() : " ")}
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.{endPoint.HttpMethod:G},
requestUri: {endPoint.Path});
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + {endPoint.Path}, global::System.UriKind.RelativeOrAbsolute));
{(string.IsNullOrWhiteSpace(endPoint.RequestType) ? " " : $@"
httpRequest.Content = new global::System.Net.Http.StringContent(
content: {jsonSerializer.GenerateSerializeCall(endPoint.RequestType, endPoint.JsonSerializerContext)},
Expand Down
Loading

0 comments on commit 595c7ea

Please sign in to comment.