Skip to content

Commit

Permalink
charset is case-insensitive in Content-Type but we downcase here for …
Browse files Browse the repository at this point in the history
…consistency with our other codebases;

at the same time, remove charset from Accept header as it isn't widely supported
  • Loading branch information
robocoder committed Dec 4, 2023
1 parent 5a88fc3 commit 3036a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WebDriver/Service/CurlService.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public function __construct($defaultOptions = array())
public function execute($requestMethod, $url, $parameters = null, $extraOptions = array())
{
$customHeaders = array(
'Content-Type: application/json;charset=UTF-8',
'Accept: application/json;charset=UTF-8',
'Content-Type: application/json;charset=utf-8',
'Accept: application/json',
);

$curl = curl_init($url);
Expand Down

0 comments on commit 3036a17

Please sign in to comment.