Bug 207 - Now exits on http 400+ errors
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1670 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
7cd2e34d2f
commit
0d8f45b250
|
@ -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 ));
|
||||
|
|
Loading…
Reference in New Issue