You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"});
The text was updated successfully, but these errors were encountered:
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 beforeresponse.write()
row. Like that:response.writeHeader(200, {"Content-Type": "text/html"});
The text was updated successfully, but these errors were encountered: