Permalink
Browse files

fix(slacknotes): follow redirects when resolving URLs

  • Loading branch information...
eteubert committed Jan 13, 2019
1 parent 6f9d346 commit 5b39746f329d7cec6e4a55bff0616fb4d49e843e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modules/slack_shownotes/slack_shownotes.php
@@ -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';
@@ -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 => "",

0 comments on commit 5b39746

Please sign in to comment.