Skip to content

Commit

Permalink
.Net: Use UriKind.Relative (#10123)
Browse files Browse the repository at this point in the history
### Motivation and Context

Closes #9264
Closes #10105 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
  • Loading branch information
markwallace-microsoft authored Jan 8, 2025
1 parent 9a0d63b commit c4100ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private static async Task<JsonDocument> MakeRequestAsync(HttpClient client, stri
Console.WriteLine($"REQUEST: {path}");
Console.WriteLine();

HttpResponseMessage response = await client.GetAsync(new Uri(path));
HttpResponseMessage response = await client.GetAsync(new Uri(path, UriKind.Relative));
response.EnsureSuccessStatusCode();
string content = await response.Content.ReadAsStringAsync();
return JsonDocument.Parse(content);
Expand Down

0 comments on commit c4100ee

Please sign in to comment.