Whitelist the alternative raw url

This commit is contained in:
Robin Ward 2017-01-17 11:11:09 -05:00
parent 1e1e40c75f
commit 11641fb3cd

View File

@ -8,6 +8,7 @@ const TOPIC_REGEXP = /\/t\/([^\/]+)\/(\d+)\/?(\d+)?/;
// We can add links here that have server side responses but not client side.
const SERVER_SIDE_ONLY = [
/^\/posts\/\d+\/raw/,
/^\/raw\/\d+/,
/\.rss$/,
/\.json/,
];