Skip to content
This repository was archived by the owner on May 4, 2018. It is now read-only.
This repository was archived by the owner on May 4, 2018. It is now read-only.

Arrest is not returning HTTP code on the header #20

Description

@rgr-prog

I have noticed that ArrestDB does not set up the HTTP header when a method calls Reply (ArrestDB::Reply(ArrestDB::$HTTP[400]))
I'm suggesting you to add this snippet to solve this problem.
[ ] 's,

548a549,552
>               if ( is_array($data) && ( array_key_exists('success',$data) || array_key_exists('error',$data)))
>               {
>                   header(sprintf('%s %s %s', $_SERVER["SERVER_PROTOCOL"], $data[key($data)]['code'], $data[key($data)]['status']));
>               }

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions