Skip to content

Secure option does nothing #145

@gooverdian

Description

@gooverdian
$client = new \Tmdb\Client($token, ['secure' => false]);
$search = $api_client->getSearchApi()->searchMulti($query);

That code is still making https request. It seems, that in HttpClient.php constructSecureUrl($path) function uses https explicitly.

Further exploration suggests changing function body to
return $this->options['base_url'] . $path;
because secure option is already handled in Client.php postResolve function assigning options['base_url'] right url with http protocol, when 'secure' => false.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions