mod_invites_bootstrap: Reject old index values
This commit is contained in:
parent
90b13aed6e
commit
e9e5762936
|
@ -27,6 +27,8 @@ local function handle_request(event)
|
||||||
if current_index == last_bootstrap.index then
|
if current_index == last_bootstrap.index then
|
||||||
event.response.headers.Location = last_bootstrap.result;
|
event.response.headers.Location = last_bootstrap.result;
|
||||||
return 303;
|
return 303;
|
||||||
|
elseif current_index < last_bootstrap.index then
|
||||||
|
return 410;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue