mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-11-29 11:50:22 +01:00
Fix base64 snippets in Publishing
-w0 is usually needed for longer outputs
This commit is contained in:
parent
e39498702d
commit
c8ac104043
1 changed files with 2 additions and 2 deletions
|
|
@ -3679,13 +3679,13 @@ authParam = base64_raw(authHeader) // -> QmFzaWMgZEdWemRIVnpaWEk2Wm1GclpYQmhjM0
|
|||
The following command will generate the appropriate value for you on *nix systems:
|
||||
|
||||
```
|
||||
echo -n "Basic `echo -n 'testuser:fakepassword' | base64`" | base64 | tr -d '='
|
||||
echo -n "Basic `echo -n 'testuser:fakepassword' | base64 -w0`" | base64 -w0 | tr -d '='
|
||||
```
|
||||
|
||||
For access tokens, you can use this instead:
|
||||
|
||||
```
|
||||
echo -n "Bearer faketoken" | base64 | tr -d '='
|
||||
echo -n "Bearer faketoken" | base64 -w0 | tr -d '='
|
||||
```
|
||||
|
||||
## Advanced features
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue