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

Arrest is not returning HTTP code on the header #20

Open
limbo200 opened this issue Sep 28, 2015 · 0 comments
Open

Arrest is not returning HTTP code on the header #20

limbo200 opened this issue Sep 28, 2015 · 0 comments

Comments

@limbo200
Copy link

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']));
>               }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant