commit:f150483b5abafe36f63821457e7867373dc7c49d
author:Chip Black
committer:Chip Black
date:Sun Nov 24 00:07:36 2013 -0600
parents:c1ddc7d4eb83ca2dd17f72e88bf1e21518c1724c
Add apache Authorization header hack
diff --git a/rss.cgi b/rss.cgi
line changes: +0/-1
index 11e1982..3bc6172
--- 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;

diff --git a/www-configs/htaccess b/www-configs/htaccess
line changes: +4/-0
index 2587f51..5c9f416
--- a/www-configs/htaccess
+++ b/www-configs/htaccess
@@ -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]