// set default headers
$this->addHeader('User-Agent', "HTTP.PHP (HTTPRequest.class.php; WoltLab Community Framework/".WCF_VERSION."; ".WCF::getLanguage()->languageCode.")");
$this->addHeader('Accept', '*/*');
- $this->addHeader('Accept-Language', WCF::getLanguage()->languageCode);
+ $this->addHeader('Accept-Language', WCF::getLanguage()->getFixedLanguageCode());
if ($this->options['method'] !== 'GET') {
$this->addHeader('Content-length', strlen(http_build_query($this->postParameters)));
$this->addHeader('Content-Type', 'application/x-www-form-urlencoded');