niklasb / webkit-server

[not actively maintained] The C++ webkit-server from capybara-webkit with useful extensions and Python bindings
MIT License
48 stars 38 forks source link

Command name missing in set_html #2

Closed ludoo closed 12 years ago

ludoo commented 12 years ago

The command name is missing in the call to issue_command in set_html

--- /home/ludo/tmp/webkit-server/webkit_server.py   2012-07-07 09:23:53.566452685 +0200
+++ /usr/local/lib/python2.7/dist-packages/webkit_server.py 2012-07-07 10:19:01.182472061 +0200
@@ -321,9 +321,9 @@
     Scripts and CSS is dynamically fetched as if the HTML had been loaded from
     the given URL. """
     if url:
-      self.conn.issue_command(html, url)
+      self.conn.issue_command('SetHtml', html, url)
     else:
-      self.conn.issue_command(html)
+      self.conn.issue_command('SetHtml', html)

   def set_proxy(self, host     = "localhost",
                       port     = 0,
niklasb commented 12 years ago

Thanks for reporting this!