comparison src/protocols/msn/httpconn.c @ 12213:4e7ba55a1db2

[gaim-migrate @ 14515] Someone was in #gaim the other day having problems with the http method and a proxy server that was mangling the response headers (which is annoying, but legitimate). This should make that work a bit better, although I think that particular user had other problems with that proxy server too. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 24 Nov 2005 16:04:45 +0000
parents e9d0d944b9d2
children fc464a0abccc
comparison
equal deleted inserted replaced
12212:c9a943c60c33 12213:4e7ba55a1db2
644 s += 4; /* Skip \r\n */ 644 s += 4; /* Skip \r\n */
645 header = g_strndup(buf, s - buf); 645 header = g_strndup(buf, s - buf);
646 body_start = s; 646 body_start = s;
647 body_len = size - (body_start - buf); 647 body_len = size - (body_start - buf);
648 648
649 if ((s = strstr(header, "Content-Length: ")) != NULL) 649 if ((s = gaim_strcasestr(header, "Content-Length: ")) != NULL)
650 { 650 {
651 int tmp_len; 651 int tmp_len;
652 652
653 s += strlen("Content-Length: "); 653 s += strlen("Content-Length: ");
654 654
684 gaim_debug_misc("msn", "Incoming HTTP buffer (header): {%s\r\n}\n", 684 gaim_debug_misc("msn", "Incoming HTTP buffer (header): {%s\r\n}\n",
685 header); 685 header);
686 #endif 686 #endif
687 687
688 /* Now we should be able to process the data. */ 688 /* Now we should be able to process the data. */
689 if ((s = strstr(header, "X-MSN-Messenger: ")) != NULL) 689 if ((s = gaim_strcasestr(header, "X-MSN-Messenger: ")) != NULL)
690 { 690 {
691 char *full_session_id, *gw_ip, *session_action; 691 char *full_session_id, *gw_ip, *session_action;
692 char *t, *session_id; 692 char *t, *session_id;
693 char **elems, **cur, **tokens; 693 char **elems, **cur, **tokens;
694 694