Skip to content

Commit 2b3e5de

Browse files
ZombayaMIchaelMainer
authored andcommitted
Fix for #91 (#92)
URL check to make sure that it starts with 'http'
1 parent a582ed1 commit 2b3e5de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Http/GraphRequest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ private function _getDefaultHeaders()
415415
*/
416416
private function _getRequestUrl()
417417
{
418+
//Send request with opaque URL
419+
if (stripos($this->endpoint, "http") === 0) {
420+
return $this->endpoint;
421+
}
422+
418423
return $this->apiVersion . $this->endpoint;
419424
}
420425

0 commit comments

Comments
 (0)