]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
Merge branch 'master' of Metallizzer/tt-rss into master
[tt-rss.git] / include / functions.php
index 1835524374473575991ab4bfecb5669fd2c55ea4..6a12963902d80566e882beff125e4ca9d65e0330 100755 (executable)
 
                         $context_options = array(
                                  'http' => array(
+                                               'header' => array(
+                                                       'Connection: close'
+                                               ),
                                                'method' => 'GET',
                                                'ignore_errors' => true,
                                                'timeout' => $timeout ? $timeout : FILE_FETCH_TIMEOUT,
                        if ($entry->nodeName == 'img') {
                                $entry->setAttribute('referrerpolicy', 'no-referrer');
 
+                               $entry->removeAttribute('width');
+                               $entry->removeAttribute('height');
+
                                if ($entry->hasAttribute('src')) {
                                        $is_https_url = parse_url($entry->getAttribute('src'), PHP_URL_SCHEME) === 'https';