From 5b44045d55d95552bcde246b3f0effe70b566e15 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 21 Sep 2013 13:40:52 +0200 Subject: [PATCH] Remove foolz+hsts issue workaround. --- src/Archive/Redirect.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Archive/Redirect.coffee b/src/Archive/Redirect.coffee index 24de31b4f..bb63f09ae 100644 --- a/src/Archive/Redirect.coffee +++ b/src/Archive/Redirect.coffee @@ -69,12 +69,7 @@ Redirect = post: (archive, {boardID, postID}) -> # For fuuka-based archives: # https://github.com/eksopl/fuuka/issues/27 - protocol = Redirect.protocol archive - # XXX foolz had HSTS set for 120 days, which broke XHR+CORS+Redirection when on HTTP. - # Remove necessary HTTPS procotol in September 2013. - if archive.name in ['Foolz', 'NSFW Foolz'] - protocol = 'https://' - URL = new String "#{protocol}#{archive.domain}/_/api/chan/post/?board=#{boardID}&num=#{postID}" + URL = new String "#{Redirect.protocol archive}#{archive.domain}/_/api/chan/post/?board=#{boardID}&num=#{postID}" URL.archive = archive URL