changeset 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 c9a943c60c33
children cadda0024205
files src/protocols/msn/httpconn.c src/protocols/msn/servconn.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;