diff --git a/src/Network/CurlResult.php b/src/Network/CurlResult.php index dc83182a6..04f183538 100644 --- a/src/Network/CurlResult.php +++ b/src/Network/CurlResult.php @@ -119,7 +119,7 @@ class CurlResult $header = ''; $base = $result; - while (preg_match('/^HTTP\/[1-2].+? [1-5][0-9][0-9]/', $base)) { + while (preg_match('/^HTTP\/[1-2].+?[1-5][0-9][0-9]/', $base)) { $chunk = substr($base, 0, strpos($base, "\r\n\r\n") + 4); $header .= $chunk; $base = substr($base, strlen($chunk)); diff --git a/tests/datasets/curl/about.body b/tests/datasets/curl/about.body new file mode 100644 index 000000000..b49bca8d9 --- /dev/null +++ b/tests/datasets/curl/about.body @@ -0,0 +1,189 @@ + + +
+ + + + + + + + + +mastodonten.de ist eine Mastodon Instanz offen für alle netten Leute (über 16).
+Geht gut miteinander um (und lest die Regeln wenn ihr euch nicht sicher seid, was das heißt). Wer möchte, kann auch gerne etwas spenden, um den Betrieb von mastodonten.de zu unterstützen.
+
+
+
+mastodonten.de is a Mastodon instance open to nice people (over 16).
+Be excellent to each other (and read the rules if you're not sure what that means). Who would like, can donate something, in order to support the operation of mastodonten.de.
+
Mastodon is a social network based on open web protocols and free, open-source software. It is decentralized like e-mail.
+