Skip to content

Commit

Permalink
Use strncasecmp() to compare with case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 2, 2014
1 parent 21c7f81 commit 14d0f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groonga.c
Expand Up @@ -752,7 +752,7 @@ do_htreq_get(grn_ctx *ctx, grn_msg *msg)

#define STRING_EQUAL_CI(string, string_length, constant_string)\
(string_length == strlen(constant_string) &&\
strncmp(string, constant_string, string_length) == 0)
strncasecmp(string, constant_string, string_length) == 0)

static const char *
do_htreq_post_parse_header_request_line(grn_ctx *ctx,
Expand Down

0 comments on commit 14d0f63

Please sign in to comment.