diff options
author | Alexander Voigt, corvid <devnull@localhost> | 2010-02-11 22:17:57 +0000 |
---|---|---|
committer | Alexander Voigt, corvid <devnull@localhost> | 2010-02-11 22:17:57 +0000 |
commit | 41406289c99e0cd17c608ed730b6c75007e9a127 (patch) | |
tree | ad6346a578b85f318360a9b21130d36d0d21bf1d /src/IO | |
parent | 0ab3ead077237d86b8944fba5fe269435114ca5c (diff) |
add http_user_agent preference
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-February/007267.html
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index 8518a392..67d552c8 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -312,13 +312,13 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) "Host: %s\r\n" "%s" "%s" - "User-Agent: Dillo/" VERSION "\r\n" + "User-Agent: %s\r\n" "Content-Length: %ld\r\n" "Content-Type: %s\r\n" "%s" /* cookies */ "\r\n", full_path->str, HTTP_Language_hdr, auth ? auth : "", - URL_AUTHORITY(url), proxy_auth->str, referer, + URL_AUTHORITY(url), proxy_auth->str, referer, prefs.http_user_agent, (long)URL_DATA(url)->len, content_type->str, cookies); dStr_append_l(query, URL_DATA(url)->str, URL_DATA(url)->len); @@ -336,14 +336,14 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) "Host: %s\r\n" "%s" "%s" - "User-Agent: Dillo/" VERSION "\r\n" + "User-Agent: %s\r\n" "%s" /* cookies */ "\r\n", full_path->str, (URL_FLAGS(url) & URL_E2EQuery) ? "Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "", HTTP_Language_hdr, auth ? auth : "", URL_AUTHORITY(url), - proxy_auth->str, referer, cookies); + proxy_auth->str, referer, prefs.http_user_agent, cookies); } dFree(referer); dFree(cookies); |