Skip to content

Commit 3d3e8d4

Browse files
author
Teakowa
committed
fix #77
1 parent 723272e commit 3d3e8d4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Syntax/SteamApi/Client.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,15 @@ protected function setUpClient(array $arguments = [])
117117
// Build the query string
118118
$parameters = http_build_query($parameters);
119119

120+
$headers = [];
121+
if (array_key_exists('l', $arguments)) {
122+
$headers = [
123+
'Accept-Language' => $arguments['l'],
124+
];
125+
}
126+
120127
// Send the request and get the results
121-
$request = new Request('GET', $steamUrl . '?' . $parameters);
128+
$request = new Request('GET', $steamUrl . '?' . $parameters, $headers);
122129
$response = $this->sendRequest($request);
123130

124131
// Pass the results back

0 commit comments

Comments
 (0)