[libdmapsharing] Add user agent header to requests (Rhythmbox bug #610440). Signed-off-by: W. Michael Petullo <mike f



commit 93b8fccf3a5d658289f1eee3129992b92245e86f
Author: W. Michael Petullo <mike flyn org>
Date:   Thu Mar 11 20:57:51 2010 -0500

    Add user agent header to requests (Rhythmbox bug #610440).
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-connection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index e8bc7f1..dbf8588 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -375,6 +375,7 @@ dmap_connection_build_message (DMAPConnection *connection,
 
 	message = soup_message_new_from_uri (SOUP_METHOD_GET, uri);
 
+	soup_message_headers_append (message->request_headers, "User-Agent", DMAP_USER_AGENT);
 	soup_message_headers_append (message->request_headers, "Client-DAAP-Version", 		"3.0");
 	soup_message_headers_append (message->request_headers, "Accept-Language", 		"en-us, en;q=5.0");
 #ifdef HAVE_LIBZ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]