Skip to content

Commit 9e03f77

Browse files
committed
potential fix for #31 - set curl to follow location headers
1 parent 8b8ee72 commit 9e03f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Google/Spreadsheet/DefaultServiceRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected function initRequest($url, $requestHeaders = array())
189189
{
190190
$curlParams = array (
191191
CURLOPT_RETURNTRANSFER => true,
192-
CURLOPT_FOLLOWLOCATION => 0,
192+
CURLOPT_FOLLOWLOCATION => true,
193193
CURLOPT_FAILONERROR => false,
194194
CURLOPT_SSL_VERIFYPEER => true,
195195
CURLOPT_VERBOSE => false,

0 commit comments

Comments
 (0)