Commit 3b1d7fd0 by Philippe Gaultier

Fix unused var

parent 28e9344d
...@@ -93,7 +93,7 @@ class Cors extends ActionFilter ...@@ -93,7 +93,7 @@ class Cors extends ActionFilter
$this->overrideDefaultSettings($action); $this->overrideDefaultSettings($action);
$requestCorsHeaders = $this->extractHeaders($this->request); $requestCorsHeaders = $this->extractHeaders();
$responseCorsHeaders = $this->prepareHeaders($requestCorsHeaders); $responseCorsHeaders = $this->prepareHeaders($requestCorsHeaders);
$this->addCorsHeaders($this->response, $responseCorsHeaders); $this->addCorsHeaders($this->response, $responseCorsHeaders);
...@@ -119,10 +119,9 @@ class Cors extends ActionFilter ...@@ -119,10 +119,9 @@ class Cors extends ActionFilter
/** /**
* Extract CORS headers fron the request * Extract CORS headers fron the request
* @param Request $request
* @return array CORS headers to handle * @return array CORS headers to handle
*/ */
public function extractHeaders($request) public function extractHeaders()
{ {
$headers = []; $headers = [];
$requestHeaders = array_keys($this->cors); $requestHeaders = array_keys($this->cors);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment