summaryrefslogtreecommitdiff
path: root/site/index.html
diff options
context:
space:
mode:
authorstuebinm2021-04-05 01:44:44 +0200
committerstuebinm2021-04-05 01:44:44 +0200
commiteeb8b3199e846de2410d7493f6cff20150fd3672 (patch)
treea2fcf8ebece6e122944c9d5bdcae59155c9e2060 /site/index.html
parentc0ff2093d96d543e60d312a1bf5cc836682cb978 (diff)
site: add headers for survey POST request
Diffstat (limited to 'site/index.html')
-rw-r--r--site/index.html10
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);