aboutsummaryrefslogtreecommitdiff
path: root/p/api
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-03-10 21:06:58 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-03-10 21:06:58 +0100
commitab1bec28c2a1e9534a66baa25a12b4639cbed726 (patch)
treecac33d267a58e11a3746ba15dda961fad51d3b06 /p/api
parent608b3a8656d986ff177e97e968256bcbf6785c13 (diff)
API: Better compatibility with Apache/PHP-CGI
https://github.com/marienfressinaud/FreshRSS/issues/443#issuecomment-37226210
Diffstat (limited to 'p/api')
-rw-r--r--p/api/.htaccess4
-rw-r--r--p/api/greader.php1
2 files changed, 5 insertions, 0 deletions
diff --git a/p/api/.htaccess b/p/api/.htaccess
new file mode 100644
index 000000000..41b653d96
--- /dev/null
+++ b/p/api/.htaccess
@@ -0,0 +1,4 @@
+<IfModule mod_rewrite.c>
+ RewriteEngine on
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+</IfModule>
diff --git a/p/api/greader.php b/p/api/greader.php
index ba091db90..8ce1c5b9a 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -526,6 +526,7 @@ function markAllAsRead($streamId, $olderThanId) {
}
logMe('----------------------------------------------------------------'."\n");
+//logMe(debugInfo());
$pathInfo = empty($_SERVER['PATH_INFO']) ? '/Error' : urldecode($_SERVER['PATH_INFO']);
$pathInfos = explode('/', $pathInfo);