From 92df5dc173b4e99494462bae871050432ebcf441 Mon Sep 17 00:00:00 2001 From: dannylamb Date: Thu, 7 Mar 2019 12:59:35 -0400 Subject: [PATCH] Missing a fclose :S (#120) --- src/MediaSource/MediaSourceService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MediaSource/MediaSourceService.php b/src/MediaSource/MediaSourceService.php index 2044ab00..af23c26a 100644 --- a/src/MediaSource/MediaSourceService.php +++ b/src/MediaSource/MediaSourceService.php @@ -206,6 +206,8 @@ class MediaSourceService { $content_length = stream_copy_to_stream($resource, $destination); + fclose($destination); + if ($content_length === FALSE) { throw new HttpException(500, "Request body could not be copied to $uri"); }