Skip to content

Commit 28c68f1

Browse files
committed
Merge pull request #700 from LearningLocker/issue/699
Look into payload for headers before looking at actual header values
2 parents d03d407 + afd4624 commit 28c68f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/locker/request/Request.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ public function getPassword() {
6666
* @return mixed Value of the header.
6767
*/
6868
public function header($key, $default=null) {
69-
$value = \Request::header($key);
69+
$value = $this->getParam($key);
7070

71-
// If the key is set in the headers then return it.
71+
// If the key is set in the payload then return it.
7272
if (isset($value)) {
7373
return $value;
7474
}
7575

76-
// Else return it from the payload.
76+
// Else return it from the headers.
7777
else {
78-
return $this->getParam($key, $default);
78+
return \Request::header($key, $default);
7979
}
8080
}
8181

0 commit comments

Comments
 (0)