We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806eeec commit 0e0a095Copy full SHA for 0e0a095
src/Twilio/Http/LaravelHttpClient.php
@@ -28,16 +28,15 @@ public function request(
28
int $timeout = null,
29
?AuthStrategy $authStrategy = null,
30
): Response {
31
- $request = $this->httpFactory->asForm();
+ $request = $this->httpFactory->bodyFormat('form_params')
32
+ ->withHeaders($headers);
33
34
if ($user && $password) {
35
$request->withBasicAuth($user, $password);
36
} elseif ($authStrategy instanceof AuthStrategy) {
37
$request->withHeader('Authorization', $authStrategy->getAuthString());
38
}
39
- $request->withHeaders($headers);
40
-
41
$requestOptions = [
42
'form_params' => $data,
43
'query' => $params,
0 commit comments