summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-02-15 16:17:28 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-02-15 16:17:28 +0000
commit981ef535d72c61a3b32433ff8610df84db1109c3 (patch)
tree30fb0b8a709e61bdfd6d61cefa2c740fbdaaf5c4
parent016bc700504b7b8e4293b80d04912578d8a9d282 (diff)
Notes
-rw-r--r--usr.sbin/portsnap/phttpget/phttpget.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/portsnap/phttpget/phttpget.c b/usr.sbin/portsnap/phttpget/phttpget.c
index ffd14c37ebc9..e10912493a21 100644
--- a/usr.sbin/portsnap/phttpget/phttpget.c
+++ b/usr.sbin/portsnap/phttpget/phttpget.c
@@ -503,11 +503,11 @@ main(int argc, char *argv[])
* Check for "Connection: close" or
* "Connection: Keep-Alive" header
*/
- if (strncmp(hln, "Connection:", 11) == 0) {
+ if (strncasecmp(hln, "Connection:", 11) == 0) {
hln += 11;
- if (strstr(hln, "close") != NULL)
+ if (strcasestr(hln, "close") != NULL)
pipelined = 0;
- if (strstr(hln, "Keep-Alive") != NULL)
+ if (strcasestr(hln, "Keep-Alive") != NULL)
keepalive = 1;
/* Next header... */
@@ -515,7 +515,7 @@ main(int argc, char *argv[])
}
/* Check for "Content-Length:" header */
- if (strncmp(hln, "Content-Length:", 15) == 0) {
+ if (strncasecmp(hln, "Content-Length:", 15) == 0) {
hln += 15;
contentlength = 0;
@@ -539,9 +539,9 @@ main(int argc, char *argv[])
}
/* Check for "Transfer-Encoding: chunked" header */
- if (strncmp(hln, "Transfer-Encoding:", 18) == 0) {
+ if (strncasecmp(hln, "Transfer-Encoding:", 18) == 0) {
hln += 18;
- if (strstr(hln, "chunked") != NULL)
+ if (strcasestr(hln, "chunked") != NULL)
chunked = 1;
/* Next header... */