Path part of HttpClient BaseAddress not used #1499
Replies: 1 comment
-
Allright, i finally figured out why this was not working, it was my fault. For future reference, the BaseAddress i set contained 2 forward slashes, so instead of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Refit interface defined:
I Create a client using a factory method like so:
When
BaseAddress
is set to something likehttps://example.com/api
, calling theSendAsync(notification, Guid.NewGuid())
on the instance created, will callhttps://example.com/?organizationId=57748050-5521-45b7-83a8-cb882927ab75
, it is removing the/api
part from teh BaseAddress on the HttpClient.Is this expected behavior? I can't find any documentation about this. Its currently preventing me from using Refit effectively.
Beta Was this translation helpful? Give feedback.
All reactions