Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 33... Línea 33...
33
        $this->endpointScheme = $endpointScheme;
33
        $this->endpointScheme = $endpointScheme;
34
    }
34
    }
Línea 35... Línea 35...
35
 
35
 
36
    public function __invoke(
36
    public function __invoke(
37
        CommandInterface $command,
37
        CommandInterface $command,
38
        RequestInterface $request = null
38
        ?RequestInterface $request = null
39
    ) {
39
    ) {
40
        // Allows only HTTPS connections when using SSE-C
40
        // Allows only HTTPS connections when using SSE-C
41
        if (($command['SSECustomerKey'] || $command['CopySourceSSECustomerKey'])
41
        if (($command['SSECustomerKey'] || $command['CopySourceSSECustomerKey'])
42
            && $this->endpointScheme !== 'https'
42
            && $this->endpointScheme !== 'https'