Skip to content

Commit

Permalink
Driver: Explicitly specify that we're sending UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
chibimagic committed Mar 26, 2015
1 parent e901c24 commit 93d160e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function Curl($http_type, $full_url, $payload = null, $escape_payl
curl_setopt($curl, CURLOPT_TIMEOUT, WebDriver::$CurlTimeoutSec);
$headers = array('Expect:');
if ($payload !== null && is_string($payload) && json_decode($payload) !== null) {
$headers[] = 'Content-Type: application/json';
$headers[] = 'Content-Type: application/json; charset=utf-8';
}
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
if (($http_type === "POST" || $http_type === "PUT") && $payload !== null) {
Expand Down

0 comments on commit 93d160e

Please sign in to comment.