Don't convert audio on HEAD requests

This commit is contained in:
Pierre Rudloff 2016-04-30 03:22:46 +02:00
parent 3c4d52e676
commit 0da1d053d3

View file

@ -196,7 +196,10 @@ class FrontController
);
$chain->add('|', $avconvProc);
}
return $response->withBody(new PopenStream($chain->getProcess()->getCommandLine()));
if ($request->isGet()) {
$response = $response->withBody(new PopenStream($chain->getProcess()->getCommandLine()));
}
return $response;
}
} catch (\Exception $e) {
$error = $e->getMessage();