Index: libsoup/soup-headers.c
===================================================================
--- libsoup/soup-headers.c	(revision 956)
+++ libsoup/soup-headers.c	(working copy)
@@ -219,15 +219,22 @@
 	guint minor_version, code;
 	const char *code_start, *code_end, *phrase_start, *phrase_end;
 
-	if (strncmp (status_line, "HTTP/1.", 7) != 0)
+	if (strncmp (status_line, "HTTP/1.", 7) == 0) {
+		minor_version = status_line[7] - '0';
+		code_start = status_line + 8;
+	}
+	else if (strncmp (status_line, "ICY ", 4) == 0)
+	{
+		minor_version = 1;
+		code_start = status_line + 4;
+	}
+	else
 		return FALSE;
-	minor_version = status_line[7] - '0';
 	if (minor_version < 0 || minor_version > 1)
 		return FALSE;
 	if (ver)
 		*ver = (minor_version == 0) ? SOUP_HTTP_1_0 : SOUP_HTTP_1_1;
 
-	code_start = status_line + 8;
 	while (*code_start == ' ' || *code_start == '\t')
 		code_start++;
 	code_end = code_start;
