Don't convert audio on HEAD requests
This commit is contained in:
parent
3c4d52e676
commit
0da1d053d3
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue