mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
Interfaces: Diagnostics: Packet Capture - make sure Response->send() is properly called, likely fix for https://github.com/opnsense/core/issues/7714
This commit is contained in:
parent
f0ad49ab28
commit
790a32c916
@ -159,9 +159,7 @@ class PacketCaptureController extends ApiMutableModelControllerBase
|
||||
$this->response->setRawHeader("Content-length: " . filesize($payload['filename']));
|
||||
$this->response->setRawHeader("Pragma: no-cache");
|
||||
$this->response->setRawHeader("Expires: 0");
|
||||
ob_clean();
|
||||
flush();
|
||||
readfile($payload['filename']);
|
||||
$this->response->setContent(fopen($payload['filename'], 'r'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user