Skip to content

Commit 7b8bf34

Browse files
committed
charset is case-insensitive in Content-Type but we downcase here for consistency with our other codebases;
at the same time, remove charset from Accept header as it isn't widely supported
1 parent e334e5e commit 7b8bf34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/WebDriver/Service/CurlService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class CurlService implements CurlServiceInterface
3838
public function execute($requestMethod, $url, $parameters = null, $extraOptions = array())
3939
{
4040
$customHeaders = array(
41-
'Content-Type: application/json;charset=UTF-8',
42-
'Accept: application/json;charset=UTF-8',
41+
'Content-Type: application/json;charset=utf-8',
42+
'Accept: application/json',
4343
);
4444

4545
$curl = curl_init($url);

0 commit comments

Comments
 (0)