Skip to content

pr-1251/Cactusinhand/llc/send-Accept-Language-header-to-HTTP-server-v4

From: Li Linchao <lilinchao@oschina.cn>

Git server end's ability to accept Accept-Language header was introduced
in f18604bbf2 (http: add Accept-Language header if possible, 2015-01-28),
but this is only used by very early phase of the transfer, which is HTTP
GET request to discover references. For other phases, like POST request
in the smart HTTP, the server does not know what language the client
speaks.

Teach git client to learn end-user's preferred language and throw
accept-language header to the server side. Once the server gets this header,
it has the ability to talk to end-user with language they understand.
This would be very helpful for many non-English speakers.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Li Linchao <lilinchao@oschina.cn>

Submitted-As: https://lore.kernel.org/git/pull.1251.v4.git.1657519134336.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1251.git.1654678407365.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1251.v2.git.1654756523475.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1251.v3.git.1655054421697.gitgitgadget@gmail.com
Assets 2