[Midnightbsd-cvs] src: http.c: Add os to user agent for libfetch.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Jul 15 23:38:30 EDT 2008


Log Message:
-----------
Add os to user agent for libfetch.  We'll be able to track that it's our users easier.

Modified Files:
--------------
    src/lib/libfetch:
        http.c (r1.2 -> r1.3)

-------------- next part --------------
Index: http.c
===================================================================
RCS file: /home/cvs/src/lib/libfetch/http.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -L lib/libfetch/http.c -L lib/libfetch/http.c -u -r1.2 -r1.3
--- lib/libfetch/http.c
+++ lib/libfetch/http.c
@@ -918,7 +918,7 @@
 		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 (MidnightBSD) " _LIBFETCH_VER, getprogname());
 		if (url->offset > 0)
 			http_cmd(conn, "Range: bytes=%lld-", (long long)url->offset);
 		http_cmd(conn, "Connection: close");


More information about the Midnightbsd-cvs mailing list