Skip to content

Commit 4d1dbbc

Browse files
committed
Fix execResize() to issue POST request
1 parent ceb084f commit 4d1dbbc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public function execStart($exec, $config)
856856
*/
857857
public function execResize($exec, $w, $h)
858858
{
859-
return $this->browser->get(
859+
return $this->browser->post(
860860
$this->uri->expand(
861861
'/exec/{exec}/resize{?w,h}',
862862
array(

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function testExecStart()
357357

358358
public function testExecResize()
359359
{
360-
$this->expectRequestFlow('get', '/exec/123/resize?w=800&h=600', $this->createResponse(), 'expectEmpty');
360+
$this->expectRequestFlow('POST', '/exec/123/resize?w=800&h=600', $this->createResponse(), 'expectEmpty');
361361

362362
$this->expectPromiseResolveWith('', $this->client->execResize(123, 800, 600));
363363
}

0 commit comments

Comments
 (0)