aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Wrapper.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-06-15 20:02:14 -0400
committerJoey Hess <joey@kitenet.net>2011-06-15 20:02:14 -0400
commitd4a0732752e79b57509cee33001ab757132366c5 (patch)
treea0e16d48bcf2e494cd7313c6ba45ea3f6d5f2c91 /IkiWiki/Wrapper.pm
parent54672a313049aa0c0a3f14f7ee257c0200e82716 (diff)
downloadikiwiki-d4a0732752e79b57509cee33001ab757132366c5.tar
ikiwiki-d4a0732752e79b57509cee33001ab757132366c5.tar.gz
let thru HTTP_ACCEPT
Needed for attachment to return json when requested. I think some browsers send Accept: * , so I made sure to check that json was explicitly listed as to be accepted, as well as having a high priority.
Diffstat (limited to 'IkiWiki/Wrapper.pm')
-rw-r--r--IkiWiki/Wrapper.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm
index 4fe2d8111..d39a3ea40 100644
--- a/IkiWiki/Wrapper.pm
+++ b/IkiWiki/Wrapper.pm
@@ -49,7 +49,7 @@ sub gen_wrapper () {
push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI
CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE
HTTP_COOKIE REMOTE_USER HTTPS REDIRECT_STATUS
- HTTP_HOST SERVER_PORT HTTPS
+ HTTP_HOST SERVER_PORT HTTPS HTTP_ACCEPT
REDIRECT_URL} if $config{cgi};
my $envsave="";
foreach my $var (@envsave) {