- move request_method test to the top, and catch other request types
(HEAD, PUT, etc)
- change how html output is handled. instead of building a string, just
output the html
- set appropriate response header for incorrect request_method.
---
web/html/rpc.php | 60
---
web/html/rpc.php |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/web/html/rpc.php b/web/html/rpc.php
index 27439db..b2c244b 100644
--- a/web/html/rpc.php
+++ b/web/html/rpc.php
@@ -4,6 +4,7 @@ include_once("aurjson.class.php");
if ( $_SERVER['REQUEST_METHOD'] != 'GE
- Undefined index: HTTPS in rss.php on line 8
- Undefined property: RSSCreator20::$cssStyleSheet in
feedcreator.class.php on line 591
---
web/html/rss.php |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/web/html/rss.php b/web/html/rss.php
index 0547815..d0a202b 100644
The first patch is a slight refactor and move of the apc cache code, out of
stats.inc into aur.inc. This is to make it available for other code to utilize
if desired. I made it a bit more generic, so other referncing code does not
have to supply a cache prefix. It will apply a prefix on behalf of t
- move apc cache code to aur.inc (centralize)
- refactor the apc usage in stats.inc to utilize new code in aur.inc
---
web/lib/aur.inc | 49 ++
web/lib/stats.inc | 61 +++-
2 files changed, 62 insertions(
utilize the apc cache functionality in aur.inc to cache the rss feed
output. the cache will cache on a per-protocol basis (http/https) so
that urls are appropriate regardless of which url people hit.
---
web/html/rss.php | 18 +-
1 files changed, 13 insertions(+), 5 deletions(-)