Skip to content

Commit

Permalink
Remove the default requestUri "/" used in the HttpRequestMessage (#271)
Browse files Browse the repository at this point in the history
* Remove the default requestUri "/" used in the HttpRequestMessage

* Increase project version to 0.4.15
  • Loading branch information
nazbrok committed Dec 20, 2021
1 parent 1ea5d9a commit d6d24f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SharedBuildProperties.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Product>Solnet</Product>
<Version>0.4.14</Version>
<Version>0.4.15</Version>
<Copyright>Copyright 2021 &#169; Solnet</Copyright>
<Authors>blockmountain</Authors>
<PublisherName>blockmountain</PublisherName>
Expand Down
2 changes: 1 addition & 1 deletion src/Solnet.Rpc/Core/Http/JsonRpcClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected async Task<RequestResult<T>> SendRequest<T>(JsonRpcRequest req)
// create byte buffer to avoid charset=utf-8 in content-type header
// as this is rejected by some RPC nodes
var buffer = Encoding.UTF8.GetBytes(requestJson);
using var httpReq = new HttpRequestMessage(HttpMethod.Post, "/")
using var httpReq = new HttpRequestMessage(HttpMethod.Post, (string)null)
{
Content = new ByteArrayContent(buffer)
{
Expand Down

0 comments on commit d6d24f3

Please sign in to comment.