Apache-FilteringProxy
view release on metacpan or search on metacpan
lib/Apache/FilteringProxy.pm view on Meta::CPAN
}
} else {
# push remaining headers as long as they aren't in our bad
# list, because some of them will cause problems
#
# user-agent - we will set this later
# accept-encoding - we don't want to get encoded (gzip, compressed)
# content & try to filter it
# don't need to be kept by a proxy (affect only the immediate
# connection)
# connection, keep-alive, TE, Trailers, Transfer-Encoding,
# Upgrade, Proxy-Authenticate, Proxy-Authorization
if ($name !~ m/^(connection|keep-alive|user-agent|te|trailers|transfer-encoding|accept-encoding|upgrade|proxy-authenticate|proxy-authorization)$/i) {
$request->header ($name, $value)
} else {
$r->warn("ignoring header '$name'='$value'") unless ($Apache::FilteringProxy::logging < 2);
}
}
return 1;
});
# set this X-header so that aware developers/servers can be intelligent
( run in 0.908 second using v1.01-cache-2.11-cpan-df04353d9ac )