Skip to content

Commit

Permalink
added .txt extension to cookies file #322
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 23, 2019
1 parent 2f00baa commit 3e08d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/CurlDispatcher.php
Expand Up @@ -48,7 +48,7 @@ public function __construct(array $config = [])
$this->config = $config + $this->config;

if (!isset($this->config[CURLOPT_COOKIEJAR])) {
$cookies = str_replace('//', '/', sys_get_temp_dir().'/embed-cookies.'.uniqid());
$cookies = str_replace('//', '/', sys_get_temp_dir().'/embed-cookies-'.uniqid().'.txt');

if (is_file($cookies)) {
if (!is_writable($cookies)) {
Expand Down

0 comments on commit 3e08d55

Please sign in to comment.