Skip to content

Commit

Permalink
dev: get content when data is null
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Apr 1, 2021
1 parent 7ae87d4 commit 6b95255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/lib/HttpResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class HttpResponse

public function getData($key = null)
{
return null === $this->data ? null : $this->data->get($key);
return null === $this->data ? $this->content : $this->data->get($key);
}
}

0 comments on commit 6b95255

Please sign in to comment.