ably / ably-php

PHP client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
51 stars 10 forks source link

Add case insensitive method to http request #135

Closed andydunstall closed 2 years ago

andydunstall commented 2 years ago

Adds case insensitivity to the public http request - this came from an issue where they we're using a lowercase method:

$client = new Ably\AblyRest('...');
$resp = $client->request('get', '/time', [], '', []);
echo $resp->statusCode; // 400

so the curl options never seemed to get set - so returned 400