Skip to content

Commit ac18972

Browse files
committed
Update REST_Controller.php
To get header variables
1 parent 765153b commit ac18972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

application/libraries/REST_Controller.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ public function __construct($config = 'rest')
498498
$this->{'_' . $this->request->method . '_args'} = $this->request->body;
499499
}
500500

501+
//get header vars
502+
$this->_head_args = $this->input->request_headers();
503+
501504
// Merge both for one mega-args variable
502505
$this->_args = array_merge(
503506
$this->_get_args,

0 commit comments

Comments
 (0)