jenkins-bot has submitted this change and it was merged.

Change subject: Revert "Apply Ori's bandaid for API cluster fails"
......................................................................


Revert "Apply Ori's bandaid for API cluster fails"

This reverts commit 083c6a7827e075905d3ce904dee5bdae40c8df01.

Change-Id: Iaeb93665019b4cffde06bb5ebda80fcbd521725c
---
M api.php
1 file changed, 0 insertions(+), 11 deletions(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/api.php b/api.php
index b86288e..6e75fb7 100644
--- a/api.php
+++ b/api.php
@@ -32,17 +32,6 @@
 
 use MediaWiki\Logger\LegacyLogger;
 
-if (
-       (
-               isset( $_SERVER['HTTP_USER_AGENT'] ) &&
-               strpos( $_SERVER['HTTP_USER_AGENT'], 'Parsoid' ) !== false
-       ) &&
-       ( isset( $_SERVER['HTTP_HOST'] ) && $_SERVER['HTTP_HOST'] === 
'eu.wikipedia.org' )
-) {
-       header( $_SERVER['SERVER_PROTOCOL'] . ' 500 T151702 Bandaid', true, 500 
);
-       die( 1 );
-}
-
 // So extensions (and other code) can check whether they're running in API mode
 define( 'MW_API', true );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/324454
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iaeb93665019b4cffde06bb5ebda80fcbd521725c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.29.0-wmf.3
Gerrit-Owner: Reedy <re...@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

Reply via email to