-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
awaiting-releaseThis issue is currently waiting to be releasedThis issue is currently waiting to be releasedfeature
Description
Inside Request
class and inside construct
method you have following code that behave wrong (at least for me!)
$this->headers[strtolower($key)] = $value;
$this->headers[strtolower(str_replace('_', '-', $key))] = $value;
I replace this with below code to have some headers like X-CSRF-TOKEN
that was not recognizable before
if (substr($key, 0, 5) == 'HTTP_') {
$this->headers[str_replace(' ', '-', strtolower(str_replace('_', ' ', substr($key, 5))))] = $value;
} else {
$this->headers[strtolower(str_replace('_', '-', $key))] = $value;
}
Metadata
Metadata
Assignees
Labels
awaiting-releaseThis issue is currently waiting to be releasedThis issue is currently waiting to be releasedfeature