ariya/phantomjs — pull request #330 by dos1 (2012-10-21 22:31:14+00:00)
Title: Allow writing binary content in WebServerResponse::write

write() now takes QByteArray instead of taking QString and converting it manually to QByteArray in bad way.
This change is transparent to JavaScript - types are converted automatically by QVariant class.

Fixes issue 505: http://code.google.com/p/phantomjs/issues/detail?id=505

This is generally just implemented suggestion by detro from https://github.com/ariya/phantomjs/pull/288
After compiling and testing, test case from that pull request was working correctly.