diff options
| author | Ahmed <git@gumx.cc> | 2026-06-17 16:02:35 +0300 |
|---|---|---|
| committer | Ahmed <git@gumx.cc> | 2026-06-17 16:02:35 +0300 |
| commit | a9f342b85e8342c86e32e061bc1afb6669447353 (patch) | |
| tree | d61fbf9f8463d5a5a013ed8006a022282fd338ca /wk.fo | |
| parent | c31605f40e512eae86b998609afcc083d8040530 (diff) | |
fix: 0x0 authorization
Diffstat (limited to 'wk.fo')
| -rw-r--r-- | wk.fo/body.html | 2 | ||||
| -rw-r--r-- | wk.fo/upload.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/wk.fo/body.html b/wk.fo/body.html index ac05efb..f945d54 100644 --- a/wk.fo/body.html +++ b/wk.fo/body.html @@ -1,7 +1,7 @@ <p>File sharing, IRC, VPN, and tools for friends. Invite required for most services.</p> <h2>file sharing</h2> <p>Upload via the <a href="/upload">web form</a> or curl (token required):</p> -<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> <p>Files expire after 24 hours by default (max 48h with <code>expires</code> param). Max 256 MB.</p> <h2>irc</h2> <p><a href="/chat">web client</a> — requires a soju account. Or connect directly:</p> 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(); |
