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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -