aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-30 10:49:06 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-30 10:49:06 +0000
commitc0e95adf50fa07ff14e07feea2f43816826c42f3 (patch)
tree936d1c3511db4517387c0fd9b6256e32688cf95d /rc.c
parent[w3m-dev 02596] (diff)
downloadw3m-c0e95adf50fa07ff14e07feea2f43816826c42f3.tar.gz
w3m-c0e95adf50fa07ff14e07feea2f43816826c42f3.zip
[w3m-dev 02597]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--rc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/rc.c b/rc.c
index 5bfcd1f..fe0382e 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.18 2001/11/30 09:54:22 ukai Exp $ */
+/* $Id: rc.c,v 1.19 2001/11/30 10:49:06 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -118,6 +118,8 @@ static char *config_file = NULL;
#define CMT_FTPPASS_HOSTNAMEGEN "FTPのパスワードのドメイン名を自動生成する"
#endif
#define CMT_USERAGENT "User-Agent"
+#define CMT_ACCEPTENCODING "圧縮方法(Accept-Encoding:)"
+#define CMT_ACCEPTMEDIA "受けつけるメディアタイプ(Accept:)"
#define CMT_ACCEPTLANG "受けつける言語(Accept-Language:)"
#define CMT_DOCUMENTCODE "文書の文字コード"
#define CMT_SYSTEMCODE "システムの文字コード"
@@ -231,6 +233,8 @@ static char *config_file = NULL;
#define CMT_FTPPASS_HOSTNAMEGEN "generate domain part of password for FTP"
#endif
#define CMT_USERAGENT "User-Agent"
+#define CMT_ACCEPTENCODING "Accept-Encoding"
+#define CMT_ACCEPTMEDIA "Accept"
#define CMT_ACCEPTLANG "Accept-Language"
/* #define CMT_DOCUMENTCODE "Document Charset" */
/* #define CMT_SYSTEMCODE "System Kanji Code" */
@@ -547,6 +551,10 @@ struct param_ptr params9[] = {
NULL},
{"accept_language", P_STRING, PI_TEXT, (void *)&AcceptLang, CMT_ACCEPTLANG,
NULL},
+ {"accept_encoding", P_STRING, PI_TEXT, (void *)&AcceptEncoding, CMT_ACCEPTENCODING,
+ NULL},
+ {"accept_media", P_STRING, PI_TEXT, (void *)&AcceptMedia, CMT_ACCEPTMEDIA,
+ NULL},
{"argv_is_url", P_CHARINT, PI_ONOFF, (void *)&ArgvIsURL, CMT_ARGV_IS_URL,
NULL},
{"retry_http", P_INT, PI_ONOFF, (void *)&retryAsHttp, CMT_RETRY_HTTP,
@@ -1082,6 +1090,10 @@ sync_with_option(void)
#endif
initMailcap();
initMimeTypes();
+ if (AcceptEncoding == NULL || *AcceptEncoding == '\0')
+ AcceptEncoding = acceptableEncoding();
+ if (AcceptMedia == NULL || *AcceptMedia == '\0')
+ AcceptMedia = acceptableMimeTypes();
}
void