Browse Source

Missing a fclose :S (#120)

pull/729/head
dannylamb 6 years ago committed by Seth Shaw
parent
commit
92df5dc173
  1. 2
      src/MediaSource/MediaSourceService.php

2
src/MediaSource/MediaSourceService.php

@ -206,6 +206,8 @@ class MediaSourceService {
$content_length = stream_copy_to_stream($resource, $destination); $content_length = stream_copy_to_stream($resource, $destination);
fclose($destination);
if ($content_length === FALSE) { if ($content_length === FALSE) {
throw new HttpException(500, "Request body could not be copied to $uri"); throw new HttpException(500, "Request body could not be copied to $uri");
} }

Loading…
Cancel
Save