518148ecdf
is no user-agent identification. From: Frank Ruell <stoerte@dreamwarrior.net>
14 lines
661 B
Plaintext
14 lines
661 B
Plaintext
$OpenBSD: patch-network_c,v 1.1 2005/09/10 16:42:01 naddy Exp $
|
|
--- network.c.orig Sun Mar 24 06:49:56 2002
|
|
+++ network.c Mon Aug 15 17:26:03 2005
|
|
@@ -225,7 +225,8 @@ int http_open(char *arg)
|
|
* a html page and not the stream */
|
|
snprintf(http_request, sizeof(http_request), "GET /%s HTTP/1.0\r\n"
|
|
/* "User-Agent: Mozilla/2.0 (Win95; I)\r\n" */
|
|
- "Pragma: no-cache\r\n" "Host: %s\r\n" "Accept: */*\r\n" "\r\n", filename, host);
|
|
+ "User-Agent: mpg321/%s\r\n"
|
|
+ "Pragma: no-cache\r\n" "Host: %s\r\n" "Accept: */*\r\n" "\r\n", filename, VERSION, host);
|
|
|
|
send(tcp_sock, http_request, strlen(http_request), 0);
|
|
|