Remove misleading error message.

This commit is contained in:
Josh Elsasser
2007-01-26 01:14:15 +00:00
parent fd66278689
commit 1a55f5272d
2 changed files with 2 additions and 1 deletions

View File

@@ -337,7 +337,6 @@ tr_httpParseUrl( const char * url, int len,
ii = tr_httpIsUrl( url, len );
if( 0 >= ii )
{
tr_err( "Invalid HTTP URL" );
return 1;
}
url += ii;
@@ -479,6 +478,7 @@ tr_httpClientUrl( int method, const char * fmt, ... )
if( tr_httpParseUrl( url, -1, &host, &port, &path ) )
{
tr_err( "Invalid HTTP URL: %s", url );
free( url );
return NULL;
}

View File

@@ -559,6 +559,7 @@ deviceAdd( tr_upnp_device_t ** first, const char * id, int idLen,
memset( ii, 0, sizeof( *ii ) );
if( tr_httpParseUrl( url, urlLen, &ii->host, &ii->port, &ii->root ) )
{
tr_err( "Invalid HTTP URL from UPnP" );
free( ii );
return;
}