From 8c4e6beaf396527b5f697811216aeb612f9ee679 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 26 Oct 2015 11:13:58 -0700 Subject: [PATCH] filebackend: Remove some old Content-Disposition b/c code Change-Id: I6af4a84bd549e2bfb1b110fa790f499d144f236b --- includes/filebackend/FileBackend.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/includes/filebackend/FileBackend.php b/includes/filebackend/FileBackend.php index cd82ab1034..8d76e96b7a 100644 --- a/includes/filebackend/FileBackend.php +++ b/includes/filebackend/FileBackend.php @@ -375,11 +375,6 @@ abstract class FileBackend { if ( empty( $opts['force'] ) ) { // sanity unset( $opts['nonLocking'] ); } - foreach ( $ops as &$op ) { - if ( isset( $op['disposition'] ) ) { // b/c (MW 1.20) - $op['headers']['Content-Disposition'] = $op['disposition']; - } - } /** @noinspection PhpUnusedLocalVariableInspection */ $scope = $this->getScopedPHPBehaviorForOps(); // try to ignore client aborts return $this->doOperationsInternal( $ops, $opts ); @@ -611,9 +606,6 @@ abstract class FileBackend { } foreach ( $ops as &$op ) { $op['overwrite'] = true; // avoids RTTs in key/value stores - if ( isset( $op['disposition'] ) ) { // b/c (MW 1.20) - $op['headers']['Content-Disposition'] = $op['disposition']; - } } /** @noinspection PhpUnusedLocalVariableInspection */ $scope = $this->getScopedPHPBehaviorForOps(); // try to ignore client aborts -- 2.20.1