ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

HTTP: header output after output started #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, if an output is started (via HTTP.ServerResponse), headers are
still sent into output, becoming part of output, visible to the user. I
propose to throw an error or at least block header output, after output has
been started.

{{{
response.write('Hello world');
response.header({'foo': 'bar'});
}}}

Expected output:
{{{
Hello world
}}}

Actual output:
{{{
Hello worldfoo: bar
}}}

v8cgi: 0.7.0 win32 (as apache module)

Original issue reported on code.google.com by anton.i....@gmail.com on 25 Oct 2009 at 4:50

GoogleCodeExporter commented 9 years ago
Okay, makes sense.

Original comment by ondrej.zara on 25 Oct 2009 at 9:07

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 25 Oct 2009 at 9:07

GoogleCodeExporter commented 9 years ago
Fixed in rev.608.

Original comment by ondrej.zara on 26 Oct 2009 at 7:58

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 26 Oct 2009 at 7:59