diff options
Diffstat (limited to 'wk.fo/upload.html')
| -rw-r--r-- | wk.fo/upload.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wk.fo/upload.html b/wk.fo/upload.html index 6578afd..ed919da 100644 --- a/wk.fo/upload.html +++ b/wk.fo/upload.html @@ -41,7 +41,7 @@ button { cursor: pointer; } <p><button onclick="upload()">upload</button></p> <p id="result"></p> <h2>curl</h2> -<pre><code>curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://wk.fo/</code></pre> +<pre><code>curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://wk.fo/</code></pre> </main> <footer> <hr> @@ -68,7 +68,7 @@ async function upload() { fd.append('file', file); const r = await fetch('/', { method: 'POST', - headers: { 'Authorization': 'Bearer ' + token }, + headers: { 'Authorization': token }, body: fd }); const text = await r.text(); |
