# HG changeset patch # User Stu Tomlinson # Date 1132848285 0 # Node ID 4e7ba55a1db22a5f28051ccc0b7a568e7842dac1 # Parent c9a943c60c33f57b35cc1a8304e09b656f9e95c9 [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 diff -r c9a943c60c33 -r 4e7ba55a1db2 src/protocols/msn/httpconn.c --- a/src/protocols/msn/httpconn.c Thu Nov 24 15:39:34 2005 +0000 +++ b/src/protocols/msn/httpconn.c Thu Nov 24 16:04:45 2005 +0000 @@ -646,7 +646,7 @@ body_start = s; body_len = size - (body_start - buf); - if ((s = strstr(header, "Content-Length: ")) != NULL) + if ((s = gaim_strcasestr(header, "Content-Length: ")) != NULL) { int tmp_len; @@ -686,7 +686,7 @@ #endif /* Now we should be able to process the data. */ - if ((s = strstr(header, "X-MSN-Messenger: ")) != NULL) + if ((s = gaim_strcasestr(header, "X-MSN-Messenger: ")) != NULL) { char *full_session_id, *gw_ip, *session_action; char *t, *session_id; diff -r c9a943c60c33 -r 4e7ba55a1db2 src/protocols/msn/servconn.c --- a/src/protocols/msn/servconn.c Thu Nov 24 15:39:34 2005 +0000 +++ b/src/protocols/msn/servconn.c Thu Nov 24 16:04:45 2005 +0000 @@ -334,7 +334,7 @@ if (len <= 0) { - gaim_debug_error("msn", "servconn read error, len: %d\n", len); + gaim_debug_error("msn", "servconn read error, len: %d error: %s\n", len, strerror(errno)); msn_servconn_got_error(servconn, MSN_SERVCONN_ERROR_READ); return;