Plugin Directory

Changeset 1711583


Ignore:
Timestamp:
08/10/2017 03:08:26 PM (9 years ago)
Author:
tammomueller
Message:

Fixed headers for image proxy

Location:
contentqube/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • contentqube/trunk/feedimporter.php

    r1664668 r1711583  
    22/*
    33  Plugin Name: ContentQube Feed Plugin
    4   Version: 1.0.2
     4  Version: 1.0.3
    55  Author: OneQube Team
    66  Author URI: http://www.oneqube.com/
  • contentqube/trunk/image-proxy.php

    r1651129 r1711583  
    6767    // (re-)send the headers
    6868    foreach ($response_headers as $key => $response_header) {
    69         // Rewrite the `Location` header, so clients will also use the proxy for redirects.
    70         if (preg_match('/^Location:/', $response_header)) {
    71             list($header, $value) = preg_split('/: /', $response_header, 2);
    72             $response_header = 'Location: ' . $_SERVER['REQUEST_URI'] . '?csurl=' . $value;
    73         }
    74         if (!preg_match('/^(Transfer-Encoding):/', $response_header)) {
    75             header($response_header, false);
    76         }
     69        header($key . ': ' . $response_header, false);
    7770    }
    7871    // finally, output the content
  • contentqube/trunk/readme.txt

    r1664668 r1711583  
    3939== Changelog ==
    4040
     41= 1.0.3 =
     42Fixed headers in imageproxy
     43
    4144= 1.0.2 =
    4245Resolved backwards compatibility issue to PHP version 5.3
Note: See TracChangeset for help on using the changeset viewer.