diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-16 11:54:18 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-16 11:54:18 -0300 |
commit | d9f18c3af927a5c69fd94fe5640eaac5c8e2574e (patch) | |
tree | 9cdde824b3b8b02002097dd53a4025023afdd0d0 /src/IO | |
parent | c41381ed695b3553b0454adcffca0d6a0e5520e9 (diff) | |
parent | ceb4a77cb81853fb7e7ca6f3c10f8e625f585496 (diff) |
merge
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/about.c | 6 | ||||
-rw-r--r-- | src/IO/http.c | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/IO/about.c b/src/IO/about.c index 756b6c69..508bfd11 100644 --- a/src/IO/about.c +++ b/src/IO/about.c @@ -240,7 +240,7 @@ const char *const AboutSplash= "<tr>\n" " <td bgcolor='#CCCCCC'>\n" " <h4>Release overview</h4>\n" -" ??, 2010\n" +" February 11, 2010\n" "<tr>\n" " <td bgcolor='#FFFFFF'>\n" " <table border='0' cellspacing='0' cellpadding='5'>\n" @@ -327,8 +327,8 @@ const char *const AboutSplash= " and the bug meter).\n" " <li> Dillo behaves very nicely when browsing local files, images, and HTML.\n" " It's also very good for Internet searching.\n" -" <li> This release is mainly intended <strong>for developers</strong>\n" -" and <em>advanced users</em>.\n" +" <li> This release is mainly intended for <strong>developers</strong>\n" +" and <strong>advanced users</strong>.\n" " <li> Frames, Java and Javascript are not supported.\n" "</ul>\n" "<br>\n" diff --git a/src/IO/http.c b/src/IO/http.c index 8518a392..1ff7399b 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -305,6 +305,7 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) query, "POST %s HTTP/1.1\r\n" "Connection: close\r\n" + "Accept: text/*,image/*,*/*;q=0.2\r\n" "Accept-Charset: utf-8,*;q=0.8\r\n" "Accept-Encoding: gzip\r\n" "%s" /* language */ @@ -312,13 +313,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); @@ -329,6 +330,7 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) "GET %s HTTP/1.1\r\n" "%s" "Connection: close\r\n" + "Accept: text/*,image/*,*/*;q=0.2\r\n" "Accept-Charset: utf-8,*;q=0.8\r\n" "Accept-Encoding: gzip\r\n" "%s" /* language */ @@ -336,14 +338,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); |