$this->server->on('propPatch', array($this, 'handleUpdateProperties'));
$this->server->on('afterBind', array($this, 'sendFileIdHeader'));
$this->server->on('afterWriteContent', array($this, 'sendFileIdHeader'));
- $this->server->on('beforeMethod:GET', array($this, 'handleRangeHeaders'));
}
/**
}
}
- /**
- * Remove range headers if encryption is enabled.
- *
- * @param RequestInterface $request
- * @param ResponseInterface $response
- */
- public function handleRangeHeaders(RequestInterface $request, ResponseInterface $response) {
- if (\OC_App::isEnabled('files_encryption')) {
- // encryption does not support range requests (yet)
- $request->removeHeader('range');
- }
- }
-
}