Thu, 24 Nov 2005 16:04:45 +0000
[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.
| src/protocols/msn/httpconn.c | file | annotate | diff | comparison | revisions | |
| src/protocols/msn/servconn.c | file | annotate | diff | comparison | revisions |
--- 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;
--- 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;