diff src/protocols/msn/msn.c @ 8207:aa44049e8891

[gaim-migrate @ 8930] This doesn't fix HTTP method, but it does add debug info and prevent sending PNGs when using HTTP method, since that would cause a disconnect. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 04 Feb 2004 06:26:54 +0000
parents f347c8d25cf5
children 288fb60344f8
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Tue Feb 03 16:31:39 2004 +0000
+++ b/src/protocols/msn/msn.c	Wed Feb 04 06:26:54 2004 +0000
@@ -1061,13 +1061,16 @@
 	MsnSession *session = gc->proto_data;
 	char buf[MSN_BUF_LEN];
 
-	g_snprintf(buf, sizeof(buf), "PNG\r\n");
+	if (!session->http_method)
+	{
+		g_snprintf(buf, sizeof(buf), "PNG\r\n");
 
-	if (msn_servconn_write(session->notification_conn,
-						   buf, strlen(buf)) < 0) {
+		if (msn_servconn_write(session->notification_conn,
+							   buf, strlen(buf)) < 0) {
 
-		gaim_connection_error(gc, _("Write error"));
-		return;
+			gaim_connection_error(gc, _("Write error"));
+			return;
+		}
 	}
 }