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

ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION #375

Open
hozzaq opened this issue Nov 27, 2017 · 0 comments
Open

ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION #375

hozzaq opened this issue Nov 27, 2017 · 0 comments

Comments

@hozzaq
Copy link

hozzaq commented Nov 27, 2017

i have a registration page, when it registered successfully i push login page using my render function, but when i log in i got this error, this is my routes example

$klein->respond('/?', function ($request, $response, $service, $app) {
    if (!$app->lazy->logged_in) {
        $response->redirect(URL . 'order');
    } else {
        $con = new \Hozzaq\Controller\Index($request, $response, $service, $app);
        $con->page();
    }
});

and this is the request
[Tue Nov 28 03:57:35.595121 2017] [php7:notice] [pid 10473] [client 127.0.0.1:50772] Array\n(\n [Host] => o.p\n [Connection] => keep-alive\n [Content-Length] => 36\n [Cache-Control] => max-age=0\n [Origin] => http://o.p\n [Upgrade-Insecure-Requests] => 1\n [User-Agent] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36\n [Content-Type] => application/x-www-form-urlencoded\n [Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\n [Referer] => http://o.p/registration\n [Accept-Encoding] => gzip, deflate\n [Accept-Language] => en-US,en;q=0.9,id;q=0.8\n [Cookie] => PHPSESSID=dcg1s34bvfg1i51hier9fk4d4t\n)\n, referer: http://o.p/registration i noticed that there's 2 referer while normally it only produce 1, is this the problem? if so how do i fix it? thanks

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