Add apache Authorization header hack
authorChip Black <bytex64@bytex64.net>
Sun, 24 Nov 2013 06:07:36 +0000 (00:07 -0600)
committerChip Black <bytex64@bytex64.net>
Sat, 29 Mar 2014 03:56:24 +0000 (22:56 -0500)
rss.cgi
www-configs/htaccess

diff --git a/rss.cgi b/rss.cgi
index 11e1982..3bc6172 100755 (executable)
--- a/rss.cgi
+++ b/rss.cgi
@@ -19,7 +19,6 @@ sub xml_escape {
 sub decode_basic_auth {
     my ($q) = @_;
 
-    my $authorization = 
     my ($method, $base64) = split(/\s+/, $q->http('Authorization'));
     if (!defined $method) {
         return;
index 2587f51..5c9f416 100644 (file)
@@ -15,3 +15,7 @@ RewriteRule ^feedinfo(.*) /blerg.cgi/feedinfo$1 [L]
 RewriteRule ^passwd$ /blerg.cgi/passwd [L]
 
 RewriteRule ^rss/(.*) /rss.cgi/$1 [L]
+
+# If your web server isn't passing the Authorization header, uncomment
+# this hack to work around it.
+#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]