Skip to content

Commit

Permalink
Bugfix. ApiEndpoint.AddRequestHeaders() never invoked (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyvalavin authored Jun 8, 2023
1 parent cafdd96 commit eec9461
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Arbus.Network/Abstractions/ApiEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ public abstract class ApiEndpoint

public CancellationToken? CancellationToken { get; set; }

protected internal virtual HttpRequestMessage CreateRequest(Uri? baseUrl)
protected internal virtual HttpRequestMessage CreateRequest(Uri? baseUri)
{
var requestUri = CreateRequestUri(baseUrl);
var requestUri = CreateRequestUri(baseUri);

var request = new HttpRequestMessage(Method, requestUri)
{
Content = CreateContent()
};
AddRequestHeaders(request.Headers);
request.SetTimeout(Timeout);

return request;
Expand Down

0 comments on commit eec9461

Please sign in to comment.