Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libdmapsharing
Commits
471ba0b2
Commit
471ba0b2
authored
Mar 11, 2010
by
W. Michael Petullo
Browse files
Fix URI handling when using IPv6 IP address (Rhythmbox bug #584244).
Signed-off-by:
W. Michael Petullo
<
mike@flyn.org
>
parent
93b8fccf
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
471ba0b2
11 March 2010 W. Michael Petullo <mike@flyn.org>
* Add user agent header to requests (Rhythmbox bug #610440).
27 February 2010 W. Michael Petullo <mike@flyn.org>
* Change dmap_connection_get_headers so that it no longer takes a
...
...
libdmapsharing/dmap-connection.c
View file @
471ba0b2
...
...
@@ -1294,7 +1294,6 @@ dmap_connection_connect (DMAPConnection *connection,
gpointer
user_data
)
{
ConnectionResponseData
*
rdata
;
char
*
path
;
g_return_if_fail
(
IS_DMAP_CONNECTION
(
connection
));
g_return_if_fail
(
connection
->
priv
->
state
==
DMAP_GET_INFO
);
...
...
@@ -1303,9 +1302,10 @@ dmap_connection_connect (DMAPConnection *connection,
connection
->
priv
->
session
=
soup_session_async_new
();
path
=
g_strdup_printf
(
"http://%s:%d"
,
connection
->
priv
->
host
,
connection
->
priv
->
port
);
connection
->
priv
->
base_uri
=
soup_uri_new
(
path
);
g_free
(
path
);
connection
->
priv
->
base_uri
=
soup_usr_new
(
NULL
);
soup_uri_set_scheme
(
connection
->
priv
->
base_uri
,
SOUP_URI_SCHEME_HTTP
);
soup_uri_set_host
(
connection
->
priv
->
base_uri
,
connection
->
priv
->
host
);
soup_uri_set_port
(
connection
->
priv
->
base_uri
,
connection
->
priv
->
port
);
if
(
connection
->
priv
->
base_uri
==
NULL
)
{
g_debug
(
"Error parsing http://%s:%d"
,
connection
->
priv
->
host
,
connection
->
priv
->
port
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment