archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / dsniff / repos / community-x86_64 / dsniff-httppostfix.patch
blob62c9a90fe8e3f58ca9ccb025c22ca25b5fd17cdb
1 --- a/decode_http.c 2000-12-19 07:38:05.000000000 +0800
2 +++ b/decode_http.c 2006-03-05 22:32:14.000000000 +0800
3 @@ -139,14 +139,14 @@
4 host = p;
6 else if (req[0] == 'P') {
7 - if (strncmp(p, "Content-type: ", 14) == 0) {
8 - if (strncmp(p + 14, "application/"
9 + if (strncasecmp(p, "Content-type: ", 14) == 0) {
10 + if (strncasecmp(p + 14, "application/"
11 "x-www-form-urlencoded",
12 33) != 0) {
13 query = NULL;
16 - else if (strncmp(p, "Content-length: ", 16) == 0) {
17 + else if (strncasecmp(p, "Content-length: ", 16) == 0) {
18 p += 16;
19 i = atoi(p);
20 if ((msg = buf_tok(&inbuf, NULL, i)) == NULL)