Skip to content

Commit a362b17

Browse files
author
daniel-abbey
committed
Merge pull request #703 from LearningLocker/develop
v1.7.1
2 parents 7ea5fec + a2547ee commit a362b17

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.0
1+
1.7.1

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)