mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-17 13:27:46 -04:00
Added proper check for http methods.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2695 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
@@ -205,7 +205,7 @@ int RemoteCameraHttp::ReadData( Buffer &buffer, int bytes_expected )
|
||||
int RemoteCameraHttp::GetResponse()
|
||||
{
|
||||
#if HAVE_LIBPCRE
|
||||
if ( config.netcam_regexps )
|
||||
if ( method == REGEXP )
|
||||
{
|
||||
const char *header = 0;
|
||||
int header_len = 0;
|
||||
@@ -496,7 +496,7 @@ int RemoteCameraHttp::GetResponse()
|
||||
else
|
||||
#endif // HAVE_LIBPCRE
|
||||
{
|
||||
if ( config.netcam_regexps )
|
||||
if ( method == REGEXP )
|
||||
{
|
||||
Warning( "Unable to use netcam regexps as not compiled with libpcre" );
|
||||
}
|
||||
@@ -610,7 +610,7 @@ int RemoteCameraHttp::GetResponse()
|
||||
}
|
||||
}
|
||||
|
||||
Debug( 6, header_ptr );
|
||||
Debug( 6, "%s", header_ptr );
|
||||
if ( (crlf = mempbrk( header_ptr, "\r\n", header_len )) )
|
||||
{
|
||||
headers[n_headers++] = header_ptr;
|
||||
|
||||
Reference in New Issue
Block a user