This commit is contained in:
emilyliublair 2021-09-12 15:08:52 -04:00
commit cea966010f

View File

@ -22,7 +22,7 @@ function forwardForImage(id, postloc) {
console.log(data[3]); console.log(data[3]);
var params = data.join("&"); var params = data.join("&");
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("POST", postloc, true); xhr.open("POST", postloc);
console.log(params); console.log(params);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send(params); xhr.send(params);