aboutsummaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-08-04 03:51:05 +0000
committercorvid <corvid@lavabit.com>2009-08-04 03:51:05 +0000
commitc353e01e755f04a48e0ad43ff5bcded275fc18fa (patch)
tree5fcfbf37a24e09be474602acd4df8b97737da98c /src/IO/http.c
parent77e1dbb94ad4b125af6f9fca67e38d4319ccc11a (diff)
tiny cleanup of query string
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 84120a92..c94c5341 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -240,13 +240,13 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy)
"Host: %s\r\n"
"%s"
"%s"
- "User-Agent: Dillo/%s\r\n"
+ "User-Agent: Dillo/" VERSION "\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, VERSION,
+ URL_AUTHORITY(url), proxy_auth->str, referer,
(long)URL_DATA(url)->len, content_type->str,
cookies);
dStr_append_l(query, URL_DATA(url)->str, URL_DATA(url)->len);
@@ -264,14 +264,14 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy)
"Host: %s\r\n"
"%s"
"%s"
- "User-Agent: Dillo/%s\r\n"
+ "User-Agent: Dillo/" VERSION "\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, VERSION, cookies);
+ proxy_auth->str, referer, cookies);
}
dFree(referer);
dFree(cookies);