Skip to content

Commit cc25fa9

Browse files
authored
Added limit for explode to avoid splitting content
1 parent 7df167b commit cc25fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ function ($result, $header) {
105105
return $result;
106106
}
107107

108-
list ($key, $value) = explode(':', $header);
109-
$result[$key] = trim($value);
108+
list ($key, $value) = explode(':', $header, 2);
109+
$result[trim($key)] = trim($value);
110110

111111
return $result;
112112
},

0 commit comments

Comments
 (0)