This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the web-development category.
Last Updated: 2024-12-03
What is the difference between Accept-Language and Content-Language HTTP headers?
Accept-Language is a list of languages the user agent WANTS to be served.
Content-Language is the actual language that has been served
Therefore if you're detecting the language, use Accept-Language. In your response, you may give a Content-Language header. These may differ (you may not be able to serve the language requested, etc.)