# Website not working with certain Accept-Language header

**URL:** <https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043>\
**Category:** Uncategorized\
**Created:** [March 9, 2022, 3:55pm UTC](https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043 "2022-03-09T15:55:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakob](https://forum.delta.chat/user_avatar/forum.delta.chat/jakob/32/1410_2.png) [@Jakob](https://forum.delta.chat/u/Jakob)\
**Post date:** [March 9, 2022, 3:55pm UTC](https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043/1 "2022-03-09T15:55:15Z")

</div>

Certain pages on the website do not load correctly for me. Major examples:

1. When opening `https://delta.chat` the server returns a 403 Forbidden error. (Note: Going directly to `https://delta.chat/en/` works fine and the website in general can be used without problems.)

 ![スクリーンショット 2022-03-09 16.45.17](https://support.delta.chat/uploads/default/original/2X/e/e7a5d41107900612239c51037d5824c564363333.jpeg)

1. Opening `https://delta.chat/download` does not work correctly, but this time a 404 Not Found error is returned by the server.

 ![スクリーンショット 2022-03-09 16.46.02](https://support.delta.chat/uploads/default/original/2X/e/e42061b5efc4156caf2f6492639c611204f92bde.jpeg)

I’m experiencing the same issues on other operating systems and across devices. Also regardless of my network. I tried with my regular home internet connection from a major German ISP, through several different “private VPN company” networks, my university’s network, my work place’s network etc. and the result was completely the same every time.

Then I noticed that in my other browser the websites DO work. So I looked at the headers in the Network tab. Apparently `Accept-Language: ja` leads to the pages not loading correctly. But in my other browser I had also set up English so that a header `Accept-Language: ja,en;q=0.9` was sent and this worked.

I think regardless of this header, the websites should load correctly. I’m not sure if it affects only Japanese, but the main page not loading correctly because of this might confuse a lot of international users.

---

<div class="post-metadata">

**Author:** ![Jakob](https://forum.delta.chat/user_avatar/forum.delta.chat/jakob/32/1410_2.png) [@Jakob](https://forum.delta.chat/u/Jakob)\
**Post date:** [March 10, 2022, 7:09pm UTC](https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043/2 "2022-03-10T19:09:01Z")

</div>

Because I was curious I tested all [language codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and it seems like if the Accept-Language header doesn’t explicitly list one of these languages, the website will fail to load correctly (including wildcard \* does not work on its own).

`ca, cs, de, en, es, fr, gl, id, it, nl, pl, pt, ru, sq, tr, uk`

Unsupported languages should probably just fallback to English, especially if the wildcard is being sent. It does successfully redirect to `/en/` when no Accept-Language header is sent at all, so it seems like this was supposed to be how it works.

---

<div class="post-metadata">

**Author:** ![Aminda](https://forum.delta.chat/user_avatar/forum.delta.chat/aminda/32/1487_2.png) [@Aminda](https://forum.delta.chat/u/Aminda)\
**Post date:** [June 5, 2022, 1:48pm UTC](https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043/3 "2022-06-05T13:48:41Z")

</div>

I reported these two issues at GitHub being unaware of this forum thread

> <https://github.com/deltachat/deltachat-pages/issues/541>
>
> \- Operating System (Linux/Mac/Windows/iOS/Android): Fedora 36 and iOS 15,5
> \- De…lta Chat Version: N/A
> \- Expected behavior: Navigating to https://delta.chat/ redirects me to https://delta.chat/en/
> \- Actual behavior: 403 Forbidden
> \- Steps to reproduce the problem: Navigate to https://delta.chat/ on either Firefox 102.0b3 or Safari on iOS 15.5
> \- Screenshots:
> 
> !\[kuva\](https://user-images.githubusercontent.com/831184/171930712-658eb261-203e-4b50-99d9-f4941eff3690.png)
> 
> 
> \- Logs: N/A or I don't have access to the server to see them.

> <https://github.com/deltachat/deltachat-pages/issues/542>
>
> \- Operating System (Linux/Mac/Windows/iOS/Android): Fedora 36 and iOS 15.5
> \- De…lta Chat Version: N/A
> \- Expected behavior: Pressing the download links on https://delta.chat/en gives me the download options sending me to https://delta.chat/en/download (like the Download link on top of the page)
> \- Actual behavior: I am given a 404 error.
> \- Steps to reproduce the problem: Navigate to https://delta.chat/en on either Firefox 102.0b3 or Safari on iOS 15.5, scroll to bottom of page and press download or get.delta.chat
> \- Screenshots:
> 
> \* !\[kuva\](https://user-images.githubusercontent.com/831184/171931200-daa70569-9abe-459d-bb6b-df11a7a77df3.png)
> \* The problematic links
> \* !\[Supposed download page\](https://user-images.githubusercontent.com/831184/171931263-c3d0a451-4c1a-4ea9-b787-efd8a93ecf8f.png)
> \* The link target. Additionally clicking the link results to #541.
> 
> \- Logs: N/A or I don't have access to the server to see them.

---

<div class="post-metadata">

**Author:** ![missytake](https://forum.delta.chat/user_avatar/forum.delta.chat/missytake/32/591_2.png) [@missytake](https://forum.delta.chat/u/missytake)\
**Post date:** [February 20, 2023, 7:51pm UTC](https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043/4 "2023-02-20T19:51:47Z")

</div>

Hi, sorry that this took so long, but I think we finally fixed this. Can you check if it works again?

btw, we now have a test script for certain Accept-Language headers: [sysadmin/test-redirects.py at master · deltachat/sysadmin · GitHub](https://github.com/deltachat/sysadmin/blob/master/delta.chat/test-redirects.py)

I added `ja` and `ja,en;q=0.9` to the script, but if you come across other Accept-Language headers which don’t work yet, let me know so we can add them to the test script.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [February 12, 2026, 2:51pm UTC](https://forum.delta.chat/t/website-not-working-with-certain-accept-language-header/2043/5 "2026-02-12T14:51:11Z")

</div>


