Commit 6349c5d2 authored by Zohten's avatar Zohten

auth field check

parent 60ce7da0
......@@ -105,6 +105,9 @@ class Request
{
// Field names are case-insensitive : https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html
$headers = array_change_key_case(getallheaders());
if (!isset($headers['authorization'])) {
throw new Exception("Missing Authorization field");
}
$autorization = $headers['authorization'];
$arr = explode(" ", $autorization);
......
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