src/S3/S3Client.php
private function getHeadObjectMiddleware()
    {
        return static function (callable $handler) {
            return function (
                CommandInterface $command,
                RequestInterface $request = null
            ) use ($handler) {
                if ($command->getName() === 'HeadObject'
                    && !isset($command['@http']['decode_content'])
                ) {
                    $command['@http']['decode_content'] = false;
                }

                return $handler($command, $request);
            };
        };
    }
private function getHeadObjectMiddleware()
    {
        return static function (callable $handler) {
            return function (
                CommandInterface $command,
                RequestInterface $request = null
            ) use ($handler) {
                if ($command->getName() === 'HeadObject'
                    && !isset($command['@http']['decode_content'])
                ) {
                    $command['@http']['decode_content'] = false;
                }

                return $handler($command, $request);
            };
        };
    }
private function getHeadObjectMiddleware ( ) { return static function ( callable $ handler ) { return function ( CommandInterface $ command , RequestInterface $ request = null ) use ( $ handler ) { if ( $ command -> getName ( ) === 'HeadObject' && ! isset ( $ command [ '@http' ] [ 'decode_content' ] ) ) { $ command [ '@http' ] [ 'decode_content' ] = false ; } return $ handler ( $ command , $ request ) ; } ; } ; }
Provides a middleware that disables content decoding on HeadObject
commands.

@return \Closure
Provides a middleware that disables content decoding on HeadObject commands .