diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-12-27 17:36:24 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-12-27 17:36:24 -0800 |
| commit | 1fc48dc4a67503c65a040606bc00a4cac7210f13 (patch) | |
| tree | 4ea220a46b4223d75bd08405df354ff5b368018c /src/supplemental/http/server.c | |
| parent | 5ff3d3d3ab82be4b2171e06f1def9cdddaef4115 (diff) | |
| download | nng-1fc48dc4a67503c65a040606bc00a4cac7210f13.tar.gz nng-1fc48dc4a67503c65a040606bc00a4cac7210f13.tar.bz2 nng-1fc48dc4a67503c65a040606bc00a4cac7210f13.zip | |
Compilation fixes for Windows.
Diffstat (limited to 'src/supplemental/http/server.c')
| -rw-r--r-- | src/supplemental/http/server.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/supplemental/http/server.c b/src/supplemental/http/server.c index 0a132975..4a46bf44 100644 --- a/src/supplemental/http/server.c +++ b/src/supplemental/http/server.c @@ -289,7 +289,6 @@ http_sconn_rxdone(void *arg) char * uri; size_t urisz; char * path; - char * tmp; bool badmeth = false; if ((rv = nni_aio_result(aio)) != 0) { @@ -819,7 +818,7 @@ http_server_add_handler(void **hp, nni_http_server *s, nni_http_handler *hh, // matches.) Note that a wild card host matches both. NNI_LIST_FOREACH (&s->handlers, h2) { if ((h2->h_host != NULL) && (h->h_host != NULL) && - (strcasecmp(h2->h_host, h->h_host) != 0)) { + (nni_strcasecmp(h2->h_host, h->h_host) != 0)) { // Hosts don't match, so we are safe. continue; } @@ -916,7 +915,7 @@ http_lookup_type(const char *path) if (l2 > l1) { continue; } - if (strcasecmp(&path[l1 - l2], content_map[i].ext) == 0) { + if (nni_strcasecmp(&path[l1 - l2], content_map[i].ext) == 0) { return (content_map[i].typ); } } |
