Skip to content

Commit

Permalink
Merge pull request #18524 from unoplatform/dev/spouliot/hrm-def-ctor-fix
Browse files Browse the repository at this point in the history
fix: Ensure HttpRequestMessage.Headers are assigned when default ctor is used
  • Loading branch information
jeromelaban authored Oct 22, 2024
2 parents 540e063 + b23b381 commit 5d1d7c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Uno.UWP/Web/Http/HttpRequestMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ public HttpRequestMessage(HttpMethod method, Uri uri)
Headers = new HttpRequestHeaderCollection(this);
}

public HttpRequestMessage()
public HttpRequestMessage() : this(HttpMethod.Get, null)
{
Method = new HttpMethod("GET");
}

public Uri RequestUri { get; set; }
Expand Down

0 comments on commit 5d1d7c4

Please sign in to comment.