diff --git a/libsoup/soup-headers.c b/libsoup/soup-headers.c
index 465c4f7..5a267d2 100644
--- a/libsoup/soup-headers.c
+++ b/libsoup/soup-headers.c
@@ -285,6 +285,9 @@ soup_headers_parse_status_line (const char       *status_line,
 
 	g_return_val_if_fail (status_line != NULL, FALSE);
 
+    if (status_line[0] == '\n')
+        (void)status_line++;
+
 	if (strncmp (status_line, "HTTP/", 5) == 0 &&
 	    g_ascii_isdigit (status_line[5])) {
 		major_version = strtoul (status_line + 5, &p, 10);
