javascript - Can new line be added to http header in node js -


can add "\n" in example in line 5? in case can, hahaha appear in http response body?

var http = require('http'); http.createserver(function (req, res) {   res.writehead(200, {   'content-length': body.length,   'location' : 'http://www.aaa.com\nhahaha',   'content-type': 'text/plain' });   res.end('hello world\n'); }).listen(1337, "127.0.0.1"); 

thanks help

node filter \n

so, result there no injection using code ..


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -