ariya/phantomjs — pull request #364 by dos1 (2012-12-12 00:03:18+00:00)
Title: Implement WebServerResponse::setEncoding in order to allow binary encoding to be sent

write() now takes QVariant which is converted to QString or QByteArray depending on encoding set before with setEncoding. This allows binary data to be sent as server response without corruption at null bytes.

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