summaryrefslogtreecommitdiff
path: root/quote.c
diff options
context:
space:
mode:
authorLibravatar Yi EungJun <eungjun.yi@navercorp.com>2015-01-28 21:04:37 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-01-28 11:17:08 -0800
commitf18604bbf2c391c689a41fca14cbaeff5e106255 (patch)
treecdf8bdf701e347cb7ee320e70ade8bb3715a4df0 /quote.c
parentMerge git://github.com/git-l10n/git-po (diff)
downloadtgif-f18604bbf2c391c689a41fca14cbaeff5e106255.tar.xz
http: add Accept-Language header if possible
Add an Accept-Language header which indicates the user's preferred languages defined by $LANGUAGE, $LC_ALL, $LC_MESSAGES and $LANG. Examples: LANGUAGE= -> "" LANGUAGE=ko:en -> "Accept-Language: ko, en;q=0.9, *;q=0.1" LANGUAGE=ko LANG=en_US.UTF-8 -> "Accept-Language: ko, *;q=0.1" LANGUAGE= LANG=en_US.UTF-8 -> "Accept-Language: en-US, *;q=0.1" This gives git servers a chance to display remote error messages in the user's preferred language. Limit the number of languages to 1,000 because q-value must not be smaller than 0.001, and limit the length of Accept-Language header to 4,000 bytes for some HTTP servers which cannot accept such long header. Signed-off-by: Yi EungJun <eungjun.yi@navercorp.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.c')
0 files changed, 0 insertions, 0 deletions