diff options
author | stuebinm | 2021-04-05 01:44:44 +0200 |
---|---|---|
committer | stuebinm | 2021-04-05 01:44:44 +0200 |
commit | eeb8b3199e846de2410d7493f6cff20150fd3672 (patch) | |
tree | a2fcf8ebece6e122944c9d5bdcae59155c9e2060 /site | |
parent | c0ff2093d96d543e60d312a1bf5cc836682cb978 (diff) |
site: add headers for survey POST request
Diffstat (limited to '')
-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); |