Removed useless "fix" of http status
This commit is contained in:
parent
83c77eadc9
commit
0c15f8b308
1 changed files with 0 additions and 1 deletions
|
|
@ -32,7 +32,6 @@ async function buildCache(host) {
|
||||||
expand = true;
|
expand = true;
|
||||||
}
|
}
|
||||||
if(!['301', '302'].includes(httpStatus)) {
|
if(!['301', '302'].includes(httpStatus)) {
|
||||||
httpStatus = '301';
|
|
||||||
throw new Error(`The record "${url}" wants to use the http status code ${httpStatus} which is not allowed (only 301 and 302)`);
|
throw new Error(`The record "${url}" wants to use the http status code ${httpStatus} which is not allowed (only 301 and 302)`);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue