Skip to content

Commit

Permalink
Merge pull request #333 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
Allow content to be null for GET Requests (#332)
  • Loading branch information
peombwa authored Aug 12, 2020
2 parents 0ac7e92 + 774d9d4 commit 910696c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -722,13 +722,13 @@ private void FillRequestStream(HttpRequestMessage request)
{
if (SkipHeaderValidation)
{
request.Content.Headers.TryAddWithoutValidation(entry.Key, entry.Value);
request.Content?.Headers.TryAddWithoutValidation(entry.Key, entry.Value);
}
else
{
try
{
request.Content.Headers.Add(entry.Key, entry.Value);
request.Content?.Headers.Add(entry.Key, entry.Value);
}
catch (FormatException ex)
{
Expand Down

0 comments on commit 910696c

Please sign in to comment.