Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 3b7da9e

Browse files
authored
Merge pull request #891 from ryanml/curl-follow-fix
cURL follow fix
2 parents adbfced + 300f9c8 commit 3b7da9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Facebook/HttpClients/FacebookCurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function openConnection($url, $method, $body, array $headers, $timeOut)
9898
CURLOPT_URL => $url,
9999
CURLOPT_CONNECTTIMEOUT => 10,
100100
CURLOPT_TIMEOUT => $timeOut,
101-
CURLOPT_RETURNTRANSFER => true, // Follow 301 redirects
101+
CURLOPT_RETURNTRANSFER => true, // Return response as string
102102
CURLOPT_HEADER => true, // Enable header processing
103103
CURLOPT_SSL_VERIFYHOST => 2,
104104
CURLOPT_SSL_VERIFYPEER => true,

0 commit comments

Comments
 (0)