Skip to content

PHP 5.3.3 #19

Description

@tomec-martin

We are forced to use PHP 5.3.3 and TinyRest seems to work fine with it. We only need to apply this simple patch - can you merge it to master?

 Flame/Rest/Security/Cors.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git ./flame/tiny-rest/Flame/Rest/Security/Cors.php b/Flame/Rest/Security/Cors.php
index 22a2fbe..71a0add 100644
--- ./flame/tiny-rest/Flame/Rest/Security/Cors.php
+++ ./flame/tiny-rest/Flame/Rest/Security/Cors.php
@@ -83,7 +83,7 @@ class Cors extends Object implements ICors
                                 * Because OPTIONS requests aren't contain declared headers but send list of
                                 * headers in Access-Control-Request-Headers header
                                 */
-                               $expectedHeaders = $this->httpRequest->getHeader("Access-Control-Request-Headers", []);
+                               $expectedHeaders = $this->httpRequest->getHeader("Access-Control-Request-Headers", array());
                                if (!empty($expectedHeaders)) {
                                        $expectedHeaders = array_map('trim', explode(",", $expectedHeaders));
                                }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions