summaryrefslogtreecommitdiff
path: root/tests/server/sws.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-10-31 23:49:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-10-31 23:49:54 +0100
commit07b95ea2680990055d12c935994044dfa24d8e9b (patch)
tree6009a02d30c4b682e9194c2bb0e86b07b354a51b /tests/server/sws.c
parent95bd2b3e7f00b9ecbd4d5ea7d8bc3b59fcb038c0 (diff)
downloadgnurl-07b95ea2680990055d12c935994044dfa24d8e9b.tar.gz
gnurl-07b95ea2680990055d12c935994044dfa24d8e9b.tar.bz2
gnurl-07b95ea2680990055d12c935994044dfa24d8e9b.zip
tests/util: get a private strncasecompare clone
... since the curlx_* code no longer provides one and we don't link libcurl to these test servers.
Diffstat (limited to 'tests/server/sws.c')
-rw-r--r--tests/server/sws.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 801a7b83f..c94e23453 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -697,7 +697,7 @@ static int ProcessRequest(struct httprequest *req)
if(got_exit_signal)
return 1; /* done */
- if((req->cl==0) && curlx_strncasecompare("Content-Length:", line, 15)) {
+ if((req->cl==0) && strncasecompare("Content-Length:", line, 15)) {
/* If we don't ignore content-length, we read it and we read the whole
request including the body before we return. If we've been told to
ignore the content-length, we will return as soon as all headers
@@ -723,8 +723,8 @@ static int ProcessRequest(struct httprequest *req)
logmsg("... but will abort after %zu bytes", req->cl);
break;
}
- else if(curlx_strncasecompare("Transfer-Encoding: chunked", line,
- strlen("Transfer-Encoding: chunked"))) {
+ else if(strncasecompare("Transfer-Encoding: chunked", line,
+ strlen("Transfer-Encoding: chunked"))) {
/* chunked data coming in */
chunked = TRUE;
}