summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.php b/init.php
index 32ae22e..83d8ce6 100644
--- a/init.php
+++ b/init.php
@@ -61,6 +61,9 @@ class Af_Enclosure_Fix_Type extends Plugin {
if (!is_array($enabled_feeds) || array_search($feed, $enabled_feeds) === FALSE)
return $enc;
+ // TODO: php7 compatibility needs to be officially dropped at some point
+
+ // @phpstan-ignore-next-line
$headers = get_headers($enc->link, 1);
if (is_array($headers) && isset($headers["Content-Type"])) {