jeanphix/Ghost.py — pull request #23 by terinjokes (2012-08-06 15:18:09+00:00)
Title: Correctly set the User Agent header.

Setting the user agent as a header on an individual request does not actually set the sent user agent string, as QWebPage would override the header.

QWebPage has a delegate method, userAgentForUrl(url), which should return the user agent to be used. I've implemented this with two new methods on GhostWebPage