summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2008-02-07 18:02:01 +0000
committerjoerg <joerg>2008-02-07 18:02:01 +0000
commit88c80c17e3404db75b63b6d4228d86aa0d29c31b (patch)
tree5f4b59efdc05d3d15107f9da03b42c666a3dcda8 /net
parent9e392bf261eaa78d5c70a2a11105c82e16ec6ca0 (diff)
downloadpkgsrc-88c80c17e3404db75b63b6d4228d86aa0d29c31b.tar.gz
The libfetch version is good enough as user-agent.
Diffstat (limited to 'net')
-rw-r--r--net/libfetch/files/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index 064bf0d05df..6d98dcaac48 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.7 2008/02/07 17:47:12 joerg Exp $ */
+/* $NetBSD: http.c,v 1.8 2008/02/07 18:02:01 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -923,7 +923,7 @@ http_request(struct url *URL, const char *op, struct url_stat *us,
if ((p = getenv("HTTP_USER_AGENT")) != NULL && *p != '\0')
http_cmd(conn, "User-Agent: %s", p);
else
- http_cmd(conn, "User-Agent: %s " _LIBFETCH_VER, getprogname());
+ http_cmd(conn, "User-Agent: %s ", _LIBFETCH_VER);
if (url->offset > 0)
http_cmd(conn, "Range: bytes=%lld-", (long long)url->offset);
http_cmd(conn, "Connection: close");