Quantcast
Channel: How do I do content encoding properly in node.js? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Carter Allen for How do I do content encoding properly in node.js?

If you want it to be downloaded as a text file with the proper encoding, you should use the text/plain; charset=utf-8content type. Simply using text isn't enough. I just tested it and it works as...

View Article


How do I do content encoding properly in node.js?

Given the following codevar http = require('http');http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text'}); response.write("Okay – so recently I’ve started...

View Article
Browsing all 2 articles
Browse latest View live