Skip to content

Can't define CURL Option (timeout) #586

Closed
@jonaswebdev

Description

@jonaswebdev

Issue Summary

I'm using the lasted SendGrid-php lib "6.0.0" and saw an issue related to curl options.

The method sign of SendGrid/Client constructor Class (file: sendgrid/php-http-client/lib/Client.php) have just 4 input attributes:
public function __construct($host, $headers = [], $version = '/v3', $path = [])

but the SendGrid constructor Class (file: sendgrid/sendgrid/lib/SendGrid.php) call a SendGrid/Client object sending five attributes, ie, the last attribute is lost:
$curlOptions = isset($options['curl']) ? $options['curl'] : null; $this->client = new \SendGrid\Client($host, $headers, '/v3', null, $curlOptions);

In this way, we can't define the CURL options property.

I hope had been clear on my report...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions