Skip to content

RTS: httpserver.js sends data as text/plain #3

Description

@luhtonen

I've installed Node.js v0.10.23 on Mac OS X 10.9
Node.js writes by default data as 'text/plain' which isn't interpreted by the browser as proper HTML. In order to get HTML response need to set header to 'text/html' just before response.write() row. Like that:
response.writeHeader(200, {"Content-Type": "text/html"});

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