Skip to content

Commit 1034609

Browse files
committed
Merge branch 'master' of https://github.com/phpcurl/curlhttp
2 parents 98f47b7 + fb8ef3e commit 1034609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ use PHPCurl\CurlHttp\HttpClient;
2222

2323
$http = new HttpClient();
2424

25-
$http->setOptions(array(
25+
$http->setOptions([
2626
CURLOPT_FOLLOWLOCATION => false, // Any arbitrary curl options you want
27-
));
27+
]);
2828

2929
$response = $http->post('http://example.com/?a=b', 'my post data', ['User-Agent: My php crawler']);
3030
// Supported: get(), post(), head(), post(), put(), delete(), custom methods

0 commit comments

Comments
 (0)