Fix #1290 : Download xith xsendfile activated fails

This commit is contained in:
Romain Neutron
2013-07-11 12:43:48 +02:00
parent bce593f018
commit a231826ab0
2 changed files with 3 additions and 3 deletions

View File

@@ -66,8 +66,8 @@ class XSendFileMappingGenerator extends Command
private function computeMapping($paths)
{
return array_merge(array(
array('mount-point' => 'lazaret', 'directory' => $this->container['root.path'] . '/tmp/lazaret'),
array('mount-point' => 'download', 'directory' => $this->container['root.path'] . '/tmp/download'),
array('mount-point' => 'protected_lazaret', 'directory' => $this->container['root.path'] . '/tmp/lazaret'),
array('mount-point' => 'protected_download', 'directory' => $this->container['root.path'] . '/tmp/download'),
), array_map(array($this, 'pathsToConf'), array_unique($paths)));
}

View File

@@ -57,7 +57,7 @@ class DoDownload implements ControllerProviderInterface
*
* return : HTML Response
*/
$controllers->post('/{token}/get/', $this->call('downloadDocuments'))
$controllers->match('/{token}/get/', $this->call('downloadDocuments'))
->bind('document_download')
->assert('token', '[a-zA-Z0-9]{8,16}');