1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 22:22:58 +00:00

(trunk libT) #2373: Handle HTTP redirects more gracefully

This commit is contained in:
Charles Kerr 2009-08-31 17:18:58 +00:00
parent 23b3faada4
commit fdc61b0d0b

View file

@ -524,7 +524,12 @@ onTrackerResponse( tr_session * session,
responseCode, responseCode,
tr_webGetResponseStr( responseCode ) ); tr_webGetResponseStr( responseCode ) );
tr_strlcpy( t->lastAnnounceStr, buf, sizeof( t->lastAnnounceStr ) ); 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 ); tr_free( buf );
} }
else else