Bug 207 - Now exits on http 400+ errors

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1670 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2005-12-09 10:44:52 +00:00
parent 7cd2e34d2f
commit 0d8f45b250
1 changed files with 2 additions and 0 deletions

View File

@ -309,6 +309,8 @@ int RemoteCamera::GetResponse()
if ( status_code < 200 || status_code > 299 )
{
Error(( "Invalid response status %d: %s", status_code, status_mesg ));
if ( status_code >= 400 )
exit( -1 );
return( -1 );
}
Debug( 3, ( "Got status '%d' (%s), http version %s", status_code, status_mesg, http_version ));