Merge pull request #7090 from open-sausages/pulls/4.0/i-forgot-to-flush

Fix enable ?flush rather than just ?flush=1
This commit is contained in:
Damian Mooyman 2017-06-29 18:14:43 +12:00 committed by GitHub
commit 15b4cf70ed

View File

@ -41,7 +41,7 @@ class HTTPApplication implements Application
*/
public function handle(HTTPRequest $request)
{
$flush = $request->getVar('flush') || strpos($request->getURL(), 'dev/build') === 0;
$flush = array_key_exists('flush', $request->getVars()) || strpos($request->getURL(), 'dev/build') === 0;
// Ensure boot is invoked
return $this->execute($request, function (HTTPRequest $request) {