Skip to content

Commit

Permalink
One more set of Windows fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Dec 28, 2017
1 parent 1fc48dc commit 451f35e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/supplemental/http/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ http_uri_canonify(char *path)
*tmp = '\0';
}
// If the URI was absolute, make it relative.
if ((strncasecmp(path, "http://", strlen("http://")) == 0) ||
(strncasecmp(path, "https://", strlen("https://")) == 0)) {
if ((nni_strncasecmp(path, "http://", strlen("http://")) == 0) ||
(nni_strncasecmp(path, "https://", strlen("https://")) == 0)) {
// Skip past the ://
path = strchr(path, ':');
path += 3;
Expand Down

0 comments on commit 451f35e

Please sign in to comment.