Skip to content

Commit

Permalink
fixed set header name replace referer to Referer
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Nov 1, 2017
1 parent 2545c18 commit ae15ad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Traits/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ protected function getRemote($path, $method = 'GET', $data = array())
$headers['headers'] = [
'Authorization' => 'Bearer ' . setting('general.api_token'),
'Accept' => 'application/json',
'referer' => env('APP_URL'),
'Referer' => env('APP_URL'),
];

$data['http_errors'] = false;
Expand Down
2 changes: 1 addition & 1 deletion app/Traits/SiteApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected static function getRemote($url, $data = array())
$headers['headers'] = array(
'Authorization' => 'Bearer ' . setting('general.api_token'),
'Accept' => 'application/json',
'referer' => env('APP_URL'),
'Referer' => env('APP_URL'),
);

$data['http_errors'] = false;
Expand Down

0 comments on commit ae15ad1

Please sign in to comment.