Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clientless pattern with relative URL doesn't pick up configured default base URL #803

Closed
tmenier opened this issue Jan 17, 2024 · 0 comments
Labels

Comments

@tmenier
Copy link
Owner

tmenier commented Jan 17, 2024

First mentioned here. This doesn't work as expected:

FlurlHttp.Clients.WithDefaults(builder =>
    builder.ConfigureHttpClient(cli => cli.BaseAddress = new Uri("https://flurl.dev")));

await "/docs/fluent-http/".GetAsync(); // fails: uses configured client but neglects to prepend base URL
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Status: Released
Development

No branches or pull requests

1 participant