diff --git a/src/Client.php b/src/Client.php index a06252e..bb44651 100644 --- a/src/Client.php +++ b/src/Client.php @@ -856,7 +856,7 @@ public function execStart($exec, $config) */ public function execResize($exec, $w, $h) { - return $this->browser->get( + return $this->browser->post( $this->uri->expand( '/exec/{exec}/resize{?w,h}', array( diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 7d58093..8f8f24b 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -357,7 +357,7 @@ public function testExecStart() public function testExecResize() { - $this->expectRequestFlow('get', '/exec/123/resize?w=800&h=600', $this->createResponse(), 'expectEmpty'); + $this->expectRequestFlow('POST', '/exec/123/resize?w=800&h=600', $this->createResponse(), 'expectEmpty'); $this->expectPromiseResolveWith('', $this->client->execResize(123, 800, 600)); }