diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2019-07-01 13:58:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 13:58:33 +0000 |
commit | d6545481aeb15b71f44f4a3b903fbd38703425de (patch) | |
tree | ce5478bd6a172d5e32cc3a68e2e5a748407ff05a /fm.h | |
parent | Update ChangeLog (diff) | |
parent | Allow setting User Agent in Siteconf (diff) | |
download | w3m-d6545481aeb15b71f44f4a3b903fbd38703425de.tar.gz w3m-d6545481aeb15b71f44f4a3b903fbd38703425de.zip |
Merge pull request #119 from adamemerson/siteconf-user-agent
Allow setting User Agent in Siteconf
Diffstat (limited to 'fm.h')
-rw-r--r-- | fm.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -271,8 +271,10 @@ extern int REV_LB[]; #define SCONF_URL_CHARSET 2 #define SCONF_NO_REFERER_FROM 3 #define SCONF_NO_REFERER_TO 4 -#define SCONF_N_FIELD 5 +#define SCONF_USER_AGENT 5 +#define SCONF_N_FIELD 6 #define query_SCONF_SUBSTITUTE_URL(pu) ((const char *)querySiteconf(pu, SCONF_SUBSTITUTE_URL)) +#define query_SCONF_USER_AGENT(pu) ((const char *)querySiteconf(pu, SCONF_USER_AGENT)) #define query_SCONF_URL_CHARSET(pu) ((const wc_ces *)querySiteconf(pu, SCONF_URL_CHARSET)) #define query_SCONF_NO_REFERER_FROM(pu) ((const int *)querySiteconf(pu, SCONF_NO_REFERER_FROM)) #define query_SCONF_NO_REFERER_TO(pu) ((const int *)querySiteconf(pu, SCONF_NO_REFERER_TO)) |