src/protocols/yahoo/yahoo.c

changeset 8212
ba23de5af029
parent 8170
f034b2951a24
child 8216
9c4bc4d5a373
--- a/src/protocols/yahoo/yahoo.c	Thu Feb 05 07:38:39 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Feb 05 16:28:51 2004 +0000
@@ -1922,7 +1922,8 @@
 	GString *s;
 
 	len = read(source, buf, sizeof(buf)-1);
-	if (len <= 0  || strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302"))) {
+	if (len <= 0  || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302") &&
+			  strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302"))))) {
 		gaim_connection_error(gc, _("Unable to read"));
 		return;
 	}

mercurial