Skip to content

Commit 300f9c8

Browse files
committed
Removing follow location
1 parent db24fc2 commit 300f9c8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Facebook/HttpClients/FacebookCurlHttpClient.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public function openConnection($url, $method, $body, array $headers, $timeOut)
9999
CURLOPT_CONNECTTIMEOUT => 10,
100100
CURLOPT_TIMEOUT => $timeOut,
101101
CURLOPT_RETURNTRANSFER => true, // Return response as string
102-
CURLOPT_FOLLOWLOCATION => true, // Follow 30x redirects
103102
CURLOPT_HEADER => true, // Enable header processing
104103
CURLOPT_SSL_VERIFYHOST => 2,
105104
CURLOPT_SSL_VERIFYPEER => true,

tests/HttpClients/FacebookCurlHttpClientTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public function testCanOpenGetCurlConnection()
7272
CURLOPT_CONNECTTIMEOUT => 10,
7373
CURLOPT_TIMEOUT => 123,
7474
CURLOPT_RETURNTRANSFER => true,
75-
CURLOPT_FOLLOWLOCATION => true,
7675
CURLOPT_HEADER => true,
7776
CURLOPT_SSL_VERIFYHOST => 2,
7877
CURLOPT_SSL_VERIFYPEER => true,
@@ -116,7 +115,6 @@ public function testCanOpenCurlConnectionWithPostBody()
116115
CURLOPT_CONNECTTIMEOUT => 10,
117116
CURLOPT_TIMEOUT => 60,
118117
CURLOPT_RETURNTRANSFER => true,
119-
CURLOPT_FOLLOWLOCATION => true,
120118
CURLOPT_HEADER => true,
121119
CURLOPT_SSL_VERIFYHOST => 2,
122120
CURLOPT_SSL_VERIFYPEER => true,

0 commit comments

Comments
 (0)