/home/techb158/immovalet.com/vendor/aws/aws-sdk-php/src/FinSpaceData
NameSizeModeActions
Exception/-0755rm
FinSpaceDataClient.php19960644editdlrm
Edit: /home/techb158/immovalet.com/vendor/aws/aws-sdk-php/src/FinSpaceData/FinSpaceDataClient.php (1996B)
getHandlerList(); $stack->appendBuild($this->updateContentType(), 'models.finspaceData.updateContentType'); } /** * Creates a middleware that updates the Content-Type header when it is present; * this is necessary because the service protocol is rest-json which by default * sets the content-type to 'application/json', but interacting with the service * requires it to be set to x-amz-json-1.1 * * @return callable */ private function updateContentType() { return function (callable $handler) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($handler) { $contentType = $request->getHeader('Content-Type'); if (!empty($contentType) && $contentType[0] == 'application/json') { return $handler($command, $request->withHeader( 'Content-Type', 'application/x-amz-json-1.1' )); } return $handler($command, $request); }; }; } }