From 3c14063f0dc8c73045caaa1099f8440c606751b5 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 23 Jan 2016 14:33:18 +0000 Subject: [PATCH] Remove old 307 redirect from raw action. --- modules/action-raw.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/action-raw.php b/modules/action-raw.php index be728ab..a21de3a 100644 --- a/modules/action-raw.php +++ b/modules/action-raw.php @@ -1,7 +1,7 @@ "Raw page source", - "version" => "0.5", + "version" => "0.6", "author" => "Starbeamrainbowlabs", "description" => "Adds a 'raw' action that shows you the raw source of a page.", "id" => "action-raw", @@ -18,7 +18,6 @@ register_module([ add_action("raw", function() { global $env; - http_response_code(307); header("x-filename: " . rawurlencode($env->page) . ".md"); header("content-type: text/markdown"); exit(file_get_contents("$env->storage_prefix$env->page.md"));