Re: [PATCH v7 1/1] http: Add Accept-Language header if possible

2015-01-21 Thread Junio C Hamano
Yi EungJun writes: > +static void write_accept_language(struct strbuf *buf) > +{ > + /* > + * MAX_DECIMAL_PLACES must not be larger than 3. If it is larger than > + * that, q-value will be smaller than 0.001, the minimum q-value the > + * HTTP specification allows. See > +

Re: [PATCH v7 1/1] http: Add Accept-Language header if possible

2015-01-18 Thread Torsten Bögershausen
On 18.01.15 13:26, Yi EungJun wrote: > From: Yi EungJun > diff --git a/http.c b/http.c > index 040f362..349b033 100644 > --- a/http.c > +++ b/http.c > @@ -68,6 +68,8 @@ static struct curl_slist *no_pragma_header; > > static struct active_request_slot *active_queue_head; > > +static char *cac

[PATCH v7 1/1] http: Add Accept-Language header if possible

2015-01-18 Thread Yi EungJun
From: Yi EungJun 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, *;