summaryrefslogtreecommitdiff
path: root/net/libfetch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-02-07 18:02:01 +0000
committerjoerg <joerg@pkgsrc.org>2008-02-07 18:02:01 +0000
commitf39ec909135f7865e3ab4cb8bba9f815fc6725ea (patch)
tree5f4b59efdc05d3d15107f9da03b42c666a3dcda8 /net/libfetch
parentb5978b75bbcbb12e17d9d96c42a56fdecf1bb252 (diff)
downloadpkgsrc-f39ec909135f7865e3ab4cb8bba9f815fc6725ea.tar.gz
The libfetch version is good enough as user-agent.
Diffstat (limited to 'net/libfetch')
-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");