diff options
Diffstat (limited to 'site')
-rw-r--r-- | site/index.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/site/index.html b/site/index.html index 1378bdf..2fc90e7 100644 --- a/site/index.html +++ b/site/index.html @@ -152,8 +152,14 @@ { type: 'application/octet-stream' } ); - fetch("/upload", {method:"POST", body:blobData}) - .then(response => console.log(response.text())) + fetch("/upload", { + method: "POST", + body: blobData, + headers: { + "X-Survey": survey.title, + "Content-Type": "text/age" + } + }).then(response => console.log(response.text())) } root.appendChild(footer); |