diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-02 16:20:36 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-02 16:20:36 +0200 |
commit | d4a2bb9d15bfeabf3473d5c3325a7aea6fb4be5b (patch) | |
tree | d98cd954df05801d057d28493450c8f6b0235696 /tests/unit/external/NewsAPITest.php | |
parent | 657df718bdae25485575346e0a9812bdb6db6c2b (diff) |
fixing cors again
Diffstat (limited to 'tests/unit/external/NewsAPITest.php')
-rw-r--r-- | tests/unit/external/NewsAPITest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/external/NewsAPITest.php b/tests/unit/external/NewsAPITest.php index 116418fc6..a14faafc7 100644 --- a/tests/unit/external/NewsAPITest.php +++ b/tests/unit/external/NewsAPITest.php @@ -116,7 +116,7 @@ class NewsAPITest extends ControllerTestUtility { public function testCorsUsesOriginIfGiven() { - $this->request = new Request(array('server' => array('Origin' => 'test'))); + $this->request = new Request(array('server' => array('HTTP_ORIGIN' => 'test'))); $this->newsAPI = new NewsAPI($this->api, $this->request, $this->updater); $response = $this->newsAPI->cors(); |