From c073967600124568609d10a400039f017ad9dcf8 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 21 Jun 2013 16:36:20 -0400 Subject: [PATCH] SPDY: send back updated thread/index after post Sets X-Associated-Content header, which is at least recognized by Apache mod_spdy. --- post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post.php b/post.php index 56091040..06a6c65d 100644 --- a/post.php +++ b/post.php @@ -80,6 +80,7 @@ if (isset($_POST['delete'])) { $is_mod = isset($_POST['mod']) && $_POST['mod']; $root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; + if (!$is_mod) header('X-Associated-Content: "' . $root . $board['dir'] . $config['file_index'] . '"'); header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); } elseif (isset($_POST['report'])) { @@ -137,6 +138,7 @@ if (isset($_POST['delete'])) { $is_mod = isset($_POST['mod']) && $_POST['mod']; $root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root']; + if (!$is_mod) header('X-Associated-Content: "' . $root . $board['dir'] . $config['file_index'] . '"'); header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']); } elseif (isset($_POST['post'])) { @@ -680,6 +682,7 @@ if (isset($_POST['delete'])) { sprintf($config['file_page'], $post['op'] ? $id : $post['thread']) . (!$post['op'] ? '#' . $id : '')); rebuildThemes('post'); + if (!$post['mod']) header('X-Associated-Content: "' . $redirect . '"'); header('Location: ' . $redirect, true, $config['redirect_http']); } else { if (!file_exists($config['has_installed'])) {