Skip to content
New issue

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

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

Already on GitHub? Sign in 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Released
Development

No branches or pull requests

1 participant