Skip to content

Commit

Permalink
fix(slacknotes): follow redirects when resolving URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
eteubert committed Jan 13, 2019
1 parent 6f9d346 commit 5b39746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/slack_shownotes/slack_shownotes.php
Expand Up @@ -3,7 +3,6 @@

class Slack_Shownotes extends \Podlove\Modules\Base
{

protected $module_name = 'Slacknotes';
protected $module_description = 'Extract link lists from a Slack channel to be used in show notes.';
protected $module_group = 'web publishing';
Expand Down Expand Up @@ -175,8 +174,9 @@ public static function fetch_title_for_url($url)
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_TIMEOUT => 10,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => "",
Expand Down

0 comments on commit 5b39746

Please sign in to comment.