From ecf09ea77a2a657ccd2116557d9963fb54f1657c Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 30 Nov 2001 14:06:27 +0000 Subject: modify AcceptLang --- url.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'url.c') diff --git a/url.c b/url.c index 5818c7d..147cbeb 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.15 2001/11/30 11:06:25 ukai Exp $ */ +/* $Id: url.c,v 1.16 2001/11/30 14:06:27 ukai Exp $ */ #include "fm.h" #include #include @@ -1200,19 +1200,8 @@ otherinfo(ParsedURL *target, ParsedURL *current, char *referer) Strcat_m_charp(s, "Accept: ", AcceptMedia, "\r\n", NULL); Strcat_m_charp(s, "Accept-Encoding: ", AcceptEncoding, "\r\n", NULL); + Strcat_m_charp(s, "Accept-Language: ", AcceptLang, "\r\n", NULL); - Strcat_charp(s, "Accept-Language: "); - if (AcceptLang != NULL && *AcceptLang != '\0') { - Strcat_charp(s, AcceptLang); - Strcat_charp(s, "\r\n"); - } - else { -#if LANG == JA - Strcat_charp(s, "ja; q=1.0, en; q=0.5\r\n"); -#else /* LANG != JA (must be EN) */ - Strcat_charp(s, "en; q=1.0\r\n"); -#endif /* LANG != JA */ - } if (target->host) { Strcat_charp(s, "Host: "); Strcat_charp(s, target->host); -- cgit v1.2.3