Skip to content
Permalink
Browse files

Close fastcgi request on range responses as well.

  • Loading branch information...
markstory committed Sep 24, 2016
1 parent 7ebc261 commit e6a06c564934616c0ca438b1b868d72e452c2590
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/Http/ResponseEmitter.php
@@ -56,15 +56,12 @@ public function emit(ResponseInterface $response, $maxBufferLength = 8192)
$this->flush();
$range = $this->parseContentRange($response->getHeaderLine('Content-Range'));
if (is_array($range)) {
$this->emitBodyRange($range, $response, $maxBufferLength);
return;
} else {
$this->emitBody($response, $maxBufferLength);
}
$this->emitBody($response, $maxBufferLength);
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
}

0 comments on commit e6a06c5

Please sign in to comment.
You can’t perform that action at this time.