Skip to content

Commit

Permalink
Merge branch '6.x' into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jan 20, 2021
2 parents 9f0180f + d08fd80 commit d7f27d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Concerns/InteractsWithContentTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait InteractsWithContentTypes
*/
public function isJson()
{
return Str::contains($this->header('CONTENT_TYPE'), ['/json', '+json']);
return Str::contains($this->header('CONTENT_TYPE') ?? '', ['/json', '+json']);
}

/**
Expand Down

0 comments on commit d7f27d5

Please sign in to comment.