Skip to content

Commit

Permalink
Remove superfluous layer of output buffering in development webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 2, 2023
1 parent 5fd004f commit 2de5821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Web change log

## ?.?.? / ????-??-??


* Removed superfluous layer of output buffering in development webserver
(@thekid)
* Merged PR #105: Implement `WriteChunks::flush()` to use for explicitely
flushing
(@thekid)
Expand Down
7 changes: 6 additions & 1 deletion src/main/php/xp/web/srv/Develop.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ public function serve($source, $profile, $webroot, $docroot, $config, $args, $lo
$arguments= ['-S', ('localhost' === $this->host ? '127.0.0.1' : $this->host).':'.$this->port, '-t', $docroot];
$cmd= $os->compose($runtime->getExecutable()->getFileName(), array_merge(
$arguments,
$runtime->startupOptions()->withSetting('user_dir', $docroot)->withSetting('include_path', $include)->asArguments(),
$runtime->startupOptions()
->withSetting('user_dir', $docroot)
->withSetting('include_path', $include)
->withSetting('output_buffering', 0)
->asArguments()
,
[$runtime->bootstrapScript('web')]
));

Expand Down

0 comments on commit 2de5821

Please sign in to comment.