Skip to content

Commit ff35f1d

Browse files
author
Chris Hartjes
committed
Fixed bug in remap hosts function
1 parent 595bed6 commit ff35f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPBrowserMobProxy/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function timeouts($options) {
154154
}
155155

156156
function remap_hosts($address, $ip_address) {
157-
$data = json_encode(array($address => $address));
157+
$data = json_encode(array($address => $ip_address));
158158
$response = Requests::post("http://" . $this->browsermob_url . "/proxy/" . $this->port . "/hosts",
159159
array('Content-Type' => 'application/json'),
160160
$data);

0 commit comments

Comments
 (0)