Change to actual path, so 301 redirect doesnt occur and browser wont change method
This commit is contained in:
@@ -604,7 +604,7 @@
|
|||||||
try {
|
try {
|
||||||
const code = codeEditor.getValue();
|
const code = codeEditor.getValue();
|
||||||
|
|
||||||
const response = await fetch('/codestorage', {
|
const response = await fetch('/codestorage/default.php', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'text/plain'
|
'Content-Type': 'text/plain'
|
||||||
@@ -681,7 +681,7 @@
|
|||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`/codestorage?id=${id}`);
|
const response = await fetch(`/codestorage/default.php?id=${id}`);
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user