Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

[Bug Report] undefined header "Content-Type" for output the captcha challenge #1

@liaosankai

Description

@liaosankai

Output the captcha challenge on captcha controller is working well on IE browser,but it seem get in trouble on Firefox or Chrome.So I do some fix as follow:

BEFORE:

$this->request->response = Captcha::instance($group)->render(FALSE);

AFTER:

$captcha = Captcha::instance($group)->render(FALSE);
$this->request->headers['Content-Type'] = File::mime($captcha);
$this->request->headers['Content-length'] = filesize($captcha);
$this->request->response = $captcha;

It is working well on all browsers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions