From e33fc4cd60eaafcd326ba6b594a5af116e455db2 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 5 Dec 2008 19:05:35 +0000 Subject: [PATCH] Added proper check for http methods. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2695 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_remote_camera_http.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zm_remote_camera_http.cpp b/src/zm_remote_camera_http.cpp index eb61f2f09..267b43260 100644 --- a/src/zm_remote_camera_http.cpp +++ b/src/zm_remote_camera_http.cpp @@ -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;