git.cweiske.de
/
anoweco.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25f2495
)
fetch token verification error response
author
Christian Weiske
<cweiske@cweiske.de>
Sun, 7 Aug 2016 17:28:19 +0000
(19:28 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Sun, 7 Aug 2016 17:28:19 +0000
(19:28 +0200)
www/micropub.php
patch
|
blob
|
history
diff --git
a/www/micropub.php
b/www/micropub.php
index 54cdee0654518246d8bb3b93e23e96e7748db661..375920b4fa400f7ecbcf297fb4a255c0fc900767 100644
(file)
--- a/
www/micropub.php
+++ b/
www/micropub.php
@@
-37,6
+37,7
@@
function validateToken($token)
'header' => array(
'Authorization: Bearer ' . $token
),
+ 'ignore_errors' => true,
),
)
);
@@
-47,7
+48,7
@@
function validateToken($token)
mpError(
'HTTP/1.0 403 Forbidden',
'forbidden',
- 'Error verifying bearer token: ' .
$res
+ 'Error verifying bearer token: ' .
trim($res)
);
}