From a2669ac687f95b5b3fa50deec84add5862f91c10 Mon Sep 17 00:00:00 2001 From: Chris Charabaruk Date: Fri, 11 Dec 2020 12:59:16 -0500 Subject: [PATCH] fix: properly set request header That was a dumb typo. --- PodcastGenerator/core/pinger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PodcastGenerator/core/pinger.php b/PodcastGenerator/core/pinger.php index 4c5bb204..8ab41873 100644 --- a/PodcastGenerator/core/pinger.php +++ b/PodcastGenerator/core/pinger.php @@ -23,10 +23,10 @@ function pingWebSub() CURLOPT_POST => true, CURLOPT_POSTFIELDS => $data, CURLOPT_RETURNTRANSFER => true, - CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded') + CURLOPT_HTTPHEADER => array('Content-Type: application/x-www-form-urlencoded') ); try { - $handle = curl_init(); + $handle = curl_init($config['websub_server']); curl_setopt_array($handle, $opts); $result = curl_exec($handle); }