Add a header on thumb.php saying which thumb server on error.
[lhc/web/wiklou.git] / thumb.php
index 2cda344..d2976f2 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -387,6 +387,7 @@ function wfThumbError( $status, $msg ) {
                header( 'HTTP/1.1 500 Internal server error' );
        }
        if ( $wgShowHostnames ) {
+               header( 'X-MW-Thumbnail-Renderer: ' . wfHostname() );
                $url = htmlspecialchars( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' );
                $hostname = htmlspecialchars( wfHostname() );
                $debug = "<!-- $url -->\n<!-- $hostname -->\n";