Skip to content

Commit

Permalink
ucwords only supports delimiter param in 5.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
rokob committed Jul 1, 2017
1 parent f7f9657 commit 2fd3bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ public function getHeaders()
if (substr($key, 0, 5) == 'HTTP_') {
// convert HTTP_CONTENT_TYPE to Content-Type, HTTP_HOST to Host, etc.
$name = strtolower(substr($key, 5));
$name = ucwords(str_replace('_', '-', $name), '-');
$name = str_replace(' ', '-', ucwords(str_replace('_', ' ', $name)));
$headers[$name] = $val;
}
}
Expand Down

0 comments on commit 2fd3bfa

Please sign in to comment.