We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d03d407 + afd4624 commit 28c68f1Copy full SHA for 28c68f1
app/locker/request/Request.php
@@ -66,16 +66,16 @@ public function getPassword() {
66
* @return mixed Value of the header.
67
*/
68
public function header($key, $default=null) {
69
- $value = \Request::header($key);
+ $value = $this->getParam($key);
70
71
- // If the key is set in the headers then return it.
+ // If the key is set in the payload then return it.
72
if (isset($value)) {
73
return $value;
74
}
75
76
- // Else return it from the payload.
+ // Else return it from the headers.
77
else {
78
- return $this->getParam($key, $default);
+ return \Request::header($key, $default);
79
80
81
0 commit comments