mirror of
https://github.com/transmission/transmission
synced 2025-03-10 14:13:23 +00:00
(trunk libT) #2373: Handle HTTP redirects more gracefully
This commit is contained in:
parent
23b3faada4
commit
fdc61b0d0b
1 changed files with 6 additions and 1 deletions
|
@ -524,7 +524,12 @@ onTrackerResponse( tr_session * session,
|
|||
responseCode,
|
||||
tr_webGetResponseStr( responseCode ) );
|
||||
tr_strlcpy( t->lastAnnounceStr, buf, sizeof( t->lastAnnounceStr ) );
|
||||
publishWarning( t, buf );
|
||||
|
||||
/* if the repsonse may require intervention, notify the user; otherwise, just log it */
|
||||
if( responseCode >= 400 )
|
||||
publishWarning( t, buf );
|
||||
tr_ninf( t->name, "%s", buf );
|
||||
|
||||
tr_free( buf );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue