Skip to content

ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION #375

Description

@r7zq

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions