Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting blank page if I don't comment out fastcgi_finish_request() in AbstractResponse #362

Open
gazu1986 opened this issue Mar 23, 2017 · 0 comments

Comments

@gazu1986
Copy link

gazu1986 commented Mar 23, 2017

Hi we have a strange problem with Klein. I must mention that we are running on nginx.
If we don't comment out line 412 in
AbstractResponse (fastcgi_finish_request())
we get blank page. We initialise Klein in our routes file like this:

<?php
$klein = new \Klein\Klein();

$serverPath = '';
if(SERVERNAME != ''){
    $serverPath = '/'.SERVERNAME;
}

$klein->respond('GET', $serverPath . '/import/something', function($request) {
    $controller = new Controller\ImportController();
    return $controller->start($request);
});

$klein->respond( $serverPath . '/import/somethingElse', function ($request, $response) {
  $controller = new Controller\ImportController();
  $controller->uploadFiles($request, $response);
});

and so on. We include route file in index and trigger $klein->dispatch(); We have some code executing after dispatch. Could that be the problem? Or is it something else? Thanks in advance for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant