ariya/phantomjs — pull request #235 by dos1 (2012-04-12 11:35:04+00:00)
Title: Handle binary data passed to WebServer's write method correctly.

When trying to pass binary data to webserver.write() (for instance rendered PDF file, opened later with fs module in binary mode), data has been being corrupted due to QString method toLocal8Bit which stops execution on approaching '\0' character.

This change implements custom handling of QString->QByteArray conversion in order to fix that problem.