SPDY: send back updated thread/index after post
Sets X-Associated-Content header, which is at least recognized by Apache mod_spdy.
This commit is contained in:
parent
9f00d86f1a
commit
c073967600
3
post.php
3
post.php
@ -80,6 +80,7 @@ if (isset($_POST['delete'])) {
|
|||||||
$is_mod = isset($_POST['mod']) && $_POST['mod'];
|
$is_mod = isset($_POST['mod']) && $_POST['mod'];
|
||||||
$root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root'];
|
$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']);
|
header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
|
||||||
|
|
||||||
} elseif (isset($_POST['report'])) {
|
} elseif (isset($_POST['report'])) {
|
||||||
@ -137,6 +138,7 @@ if (isset($_POST['delete'])) {
|
|||||||
$is_mod = isset($_POST['mod']) && $_POST['mod'];
|
$is_mod = isset($_POST['mod']) && $_POST['mod'];
|
||||||
$root = $is_mod ? $config['root'] . $config['file_mod'] . '?/' : $config['root'];
|
$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']);
|
header('Location: ' . $root . $board['dir'] . $config['file_index'], true, $config['redirect_http']);
|
||||||
} elseif (isset($_POST['post'])) {
|
} elseif (isset($_POST['post'])) {
|
||||||
|
|
||||||
@ -680,6 +682,7 @@ if (isset($_POST['delete'])) {
|
|||||||
sprintf($config['file_page'], $post['op'] ? $id : $post['thread']) . (!$post['op'] ? '#' . $id : ''));
|
sprintf($config['file_page'], $post['op'] ? $id : $post['thread']) . (!$post['op'] ? '#' . $id : ''));
|
||||||
|
|
||||||
rebuildThemes('post');
|
rebuildThemes('post');
|
||||||
|
if (!$post['mod']) header('X-Associated-Content: "' . $redirect . '"');
|
||||||
header('Location: ' . $redirect, true, $config['redirect_http']);
|
header('Location: ' . $redirect, true, $config['redirect_http']);
|
||||||
} else {
|
} else {
|
||||||
if (!file_exists($config['has_installed'])) {
|
if (!file_exists($config['has_installed'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user