Skip to content

header() statements ignored? #1

@japhy-

Description

@japhy-

I'm using php-express to serve PHP pages that occasionally return content other than text/html. In particular, I have a page which returns JSON, and has a header("Content-type: application/json") statement. However, the headers returned from this request are still text/html, as verified by the network monitor in FireFox, and the fact that prototype.js (which I'm using in the code which reads this response) does not set responseJSON in the Ajax response.

I've gotten around this problem by using prototype.js's evalJSON() function, but this fails to address the issue.

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