[rhythmbox] daap: add user-agent header to requests (bug #610440)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] daap: add user-agent header to requests (bug #610440)
- Date: Sat, 20 Feb 2010 01:46:26 +0000 (UTC)
commit 1a698310e0cb126eb9e6c033d99baa11574726bb
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Feb 20 11:44:09 2010 +1000
daap: add user-agent header to requests (bug #610440)
patch by tomgarper gmx com
plugins/daap/rb-daap-connection.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/daap/rb-daap-connection.c b/plugins/daap/rb-daap-connection.c
index 5a2a66b..6cddec4 100644
--- a/plugins/daap/rb-daap-connection.c
+++ b/plugins/daap/rb-daap-connection.c
@@ -345,6 +345,7 @@ build_message (RBDAAPConnection *connection,
message = soup_message_new_from_uri (SOUP_METHOD_GET, uri);
+ soup_message_headers_append (message->request_headers, "User-Agent", RB_DAAP_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]