ariya/phantomjs — pull request #363 by dos1 (2012-12-11 16:13:35+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 being set before with setEncoding. This allows binary data to be sent as server response.

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