diff options
Diffstat (limited to 'audio/mpg321/files')
-rw-r--r-- | audio/mpg321/files/patch-network.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/mpg321/files/patch-network.c b/audio/mpg321/files/patch-network.c new file mode 100644 index 000000000000..c61006bc9d31 --- /dev/null +++ b/audio/mpg321/files/patch-network.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- network.c.orig ++++ network.c +@@ -225,7 +225,8 @@ + * 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); + |