FreeBSD Bugzilla – Attachment 56240 Details for
Bug 84898
[patch] audio/mpg321 - provide an user-agent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mpg321_user_agent.patch
mpg321_user_agent.patch (text/plain), 943 bytes, created by
Frank Ruell
on 2005-08-14 03:50:02 UTC
(
hide
)
Description:
mpg321_user_agent.patch
Filename:
MIME Type:
Creator:
Frank Ruell
Created:
2005-08-14 03:50:02 UTC
Size:
943 bytes
patch
obsolete
>Sun Aug 14 04:01:34 CEST 2005 stoerte@dreamwarrior.net > * provide an user-agent to make some SHOUTcast streaming servers happy >diff -rN -u old-mpg321/files/patch-network.c new-mpg321/files/patch-network.c >--- old-mpg321/files/patch-network.c 1970-01-01 01:00:00.000000000 +0100 >+++ new-mpg321/files/patch-network.c 2005-08-14 04:13:33.000000000 +0200 >@@ -0,0 +1,12 @@ >+--- network.c~ Sun Mar 24 06:49:56 2002 >++++ network.c Sun Aug 14 03:54:23 2005 >+@@ -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); >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 84898
: 56240