On Tuesday, 24 July 2012 at 16:45:49 UTC, Alex wrote:
Hello!
Why does this code print output when I run it?
- It only happens when the HTTP response Code is == 405
- 173.194.69.94 is a Google Server for testing
- Are there any default callbacks which make this output?
CODE:
http://pastebin.com/CZP86Gwh
OUTPUT:
http://pastebin.com/AkA3Fvw1 (Basically a HTML error page)
--Alex
There must be a default onReceive that is writing that to stdout.
If I add this line just before the perform() call the output is
not generated:
http.onReceive = (ubyte[] data) { /+ drop +/ return data.length;
};
-David