Skip to content

Commit

Permalink
Fix for #91 (#92)
Browse files Browse the repository at this point in the history
URL check to make sure that it starts with 'http'
  • Loading branch information
Zombaya authored and MIchaelMainer committed Aug 6, 2018
1 parent a582ed1 commit 2b3e5de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Http/GraphRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ private function _getDefaultHeaders()
*/
private function _getRequestUrl()
{
//Send request with opaque URL
if (stripos($this->endpoint, "http") === 0) {
return $this->endpoint;
}

return $this->apiVersion . $this->endpoint;
}

Expand Down

0 comments on commit 2b3e5de

Please sign in to comment.