diff options
| -rw-r--r-- | ot_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -10,12 +10,12 @@ | |||
| 10 | #include <stdio.h> | 10 | #include <stdio.h> |
| 11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
| 12 | #include <string.h> | 12 | #include <string.h> |
| 13 | #include <strings.h> | ||
| 13 | #include <sys/types.h> | 14 | #include <sys/types.h> |
| 14 | #include <unistd.h> | 15 | #include <unistd.h> |
| 15 | 16 | ||
| 16 | /* Libowfat */ | 17 | /* Libowfat */ |
| 17 | #include "array.h" | 18 | #include "array.h" |
| 18 | #include "case.h" | ||
| 19 | #include "iob.h" | 19 | #include "iob.h" |
| 20 | #include "ip6.h" | 20 | #include "ip6.h" |
| 21 | #include "scan.h" | 21 | #include "scan.h" |
| @@ -480,7 +480,7 @@ static char *http_header(char *data, size_t byte_count, char *header) { | |||
| 480 | for (i = 0; i + sl + 2 < byte_count; ++i) { | 480 | for (i = 0; i + sl + 2 < byte_count; ++i) { |
| 481 | if (data[i] != '\n' || data[i + sl + 1] != ':') | 481 | if (data[i] != '\n' || data[i + sl + 1] != ':') |
| 482 | continue; | 482 | continue; |
| 483 | if (!case_equalb(data + i + 1, sl, header)) | 483 | if (strncasecmp(data + i + 1, header, sl)) |
| 484 | continue; | 484 | continue; |
| 485 | data += i + sl + 2; | 485 | data += i + sl + 2; |
| 486 | while (*data == ' ' || *data == '\t') | 486 | while (*data == ' ' || *data == '\t') |
