jenkins-bot has submitted this change and it was merged. Change subject: Add a header on thumb.php saying which thumb server on error. ......................................................................
Add a header on thumb.php saying which thumb server on error. Only added if $wgShowHostnames is on. Adding the host name as a header makes it much easier when debugging with command line tools, since one often throws away the response body. This still keeps the host name in an html comment in the response body as well, like it was previously. Change-Id: I9d15bd5e2abb4e7a8d3fe2a17fc546a1c5f3b70f --- M thumb.php 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: BryanDavis: Looks good to me, approved jenkins-bot: Verified diff --git a/thumb.php b/thumb.php index 2cda344..d2976f2 100644 --- a/thumb.php +++ b/thumb.php @@ -387,6 +387,7 @@ 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"; -- To view, visit https://gerrit.wikimedia.org/r/86397 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9d15bd5e2abb4e7a8d3fe2a17fc546a1c5f3b70f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Brian Wolff <bawolff...@gmail.com> Gerrit-Reviewer: BryanDavis <bda...@wikimedia.org> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits