Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit f3eb90b

Browse files
committed
Merge branch 'hotfix/174'
Close #174
2 parents 9a79d52 + aad1875 commit f3eb90b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ServerRequestFactory.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,13 @@ public static function marshalHeaders(array $server)
208208
}
209209

210210
if ($value && strpos($key, 'HTTP_') === 0) {
211-
$name = strtr(substr($key, 5), '_', ' ');
212-
$name = strtr(ucwords(strtolower($name)), ' ', '-');
213-
$name = strtolower($name);
214-
211+
$name = strtr(strtolower(substr($key, 5)), '_', '-');
215212
$headers[$name] = $value;
216213
continue;
217214
}
218215

219216
if ($value && strpos($key, 'CONTENT_') === 0) {
220-
$name = substr($key, 8); // Content-
221-
$name = 'Content-' . (($name == 'MD5') ? $name : ucfirst(strtolower($name)));
222-
$name = strtolower($name);
217+
$name = 'content-' . strtolower(substr($key, 8));
223218
$headers[$name] = $value;
224219
continue;
225220
}

0 commit comments

Comments
 (0)