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:
parent
276533129d
commit
e33fc4cd60
|
@ -205,7 +205,7 @@ int RemoteCameraHttp::ReadData( Buffer &buffer, int bytes_expected )
|
||||||
int RemoteCameraHttp::GetResponse()
|
int RemoteCameraHttp::GetResponse()
|
||||||
{
|
{
|
||||||
#if HAVE_LIBPCRE
|
#if HAVE_LIBPCRE
|
||||||
if ( config.netcam_regexps )
|
if ( method == REGEXP )
|
||||||
{
|
{
|
||||||
const char *header = 0;
|
const char *header = 0;
|
||||||
int header_len = 0;
|
int header_len = 0;
|
||||||
|
@ -496,7 +496,7 @@ int RemoteCameraHttp::GetResponse()
|
||||||
else
|
else
|
||||||
#endif // HAVE_LIBPCRE
|
#endif // HAVE_LIBPCRE
|
||||||
{
|
{
|
||||||
if ( config.netcam_regexps )
|
if ( method == REGEXP )
|
||||||
{
|
{
|
||||||
Warning( "Unable to use netcam regexps as not compiled with libpcre" );
|
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 )) )
|
if ( (crlf = mempbrk( header_ptr, "\r\n", header_len )) )
|
||||||
{
|
{
|
||||||
headers[n_headers++] = header_ptr;
|
headers[n_headers++] = header_ptr;
|
||||||
|
|
Loading…
Reference in New Issue