[asterisk-commits] [svn-commits] twilson: trunk r111213 - /trunk/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 26 16:23:30 CDT 2008


Author: twilson
Date: Wed Mar 26 16:23:29 2008
New Revision: 111213

URL: http://svn.digium.com/view/asterisk?view=rev&rev=111213
Log:
Stupid strcasecmp function :-)

Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?view=diff&rev=111213&r1=111212&r2=111213
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Wed Mar 26 16:23:29 2008
@@ -908,7 +908,7 @@
 		out = ast_http_error(501, "Not Implemented", NULL,
 				     "Attempt to use unimplemented / unsupported method");
 	} else {	/* try to serve it */
-		out = handle_uri(ser, uri, (strcasecmp(buf, "get")) ? AST_HTTP_GET : AST_HTTP_POST,
+		out = handle_uri(ser, uri, (!strcasecmp(buf, "get")) ? AST_HTTP_GET : AST_HTTP_POST,
 				 &status, &title, &contentlength, &vars, &static_content);
 	}
 


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the asterisk-commits mailing list