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
(from parent 1:
7323194
)
auth supports HEAD now
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 3 Aug 2016 20:13:06 +0000
(22:13 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 3 Aug 2016 20:13:06 +0000
(22:13 +0200)
www/auth.php
patch
|
blob
|
history
diff --git
a/www/auth.php
b/www/auth.php
index fbad17e142bdb8ec6824f63acee9215ea4c988bc..ef6d6cf2d558d715d66129b5a8bcc98fbf0ff09a 100644
(file)
--- a/
www/auth.php
+++ b/
www/auth.php
@@
-130,5
+130,11
@@
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
echo http_build_query(['me' => $me]);
exit();
}
+} else if ($_SERVER['REQUEST_METHOD'] == 'HEAD') {
+ //indieauth.com makes a HEAD request at first
+ header('HTTP/1.0 200 OK');
+ exit();
+} else {
+ error('Unsupported HTTP request method');
}
?>