Clean up formatting of SwiftFileBackend::sanitizeHdrsStrict()
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 28 Nov 2017 17:07:37 +0000 (09:07 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 28 Nov 2017 17:07:37 +0000 (09:07 -0800)
Change-Id: I5e411f4bf50836d22db01220853776494a9e69d5

includes/libs/filebackend/SwiftFileBackend.php

index a3f121e..27ce212 100644 (file)
@@ -185,10 +185,10 @@ class SwiftFileBackend extends FileBackendStore {
                if ( !isset( $params['headers'] ) ) {
                        return [];
                }
-               $headers = $this->getCustomHeaders( $params ['headers'] );
-               if ( isset( $headers[ 'content-type' ] ) ) {
-                       unset( $headers[ 'content-type' ] );
-               }
+
+               $headers = $this->getCustomHeaders( $params['headers'] );
+               unset( $headers[ 'content-type' ] );
+
                return $headers;
        }