summaryrefslogtreecommitdiff
path: root/main/http.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2008-03-26 21:23:29 +0000
committerTerry Wilson <twilson@digium.com>2008-03-26 21:23:29 +0000
commit4c2531989a73841d37fc353962ab8f4a25e498fd (patch)
tree1c3b665af17666b5fdf7ca9b0fec86a8075d6703 /main/http.c
parentbdf4443586f038c7134cb6491bb96cd9ebc0bce3 (diff)
Stupid strcasecmp function :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@111213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/http.c b/main/http.c
index 9e8735b2c..ca2fe5df9 100644
--- a/main/http.c
+++ b/main/http.c
@@ -908,7 +908,7 @@ static void *httpd_helper_thread(void *data)
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);
}