Changelog

This commit is contained in:
Philipp Heckel 2022-05-07 13:47:34 -04:00
parent 5cac63bfbe
commit 040bb53383
2 changed files with 4 additions and 3 deletions

View File

@ -2505,10 +2505,10 @@ Here's a simple example:
``` powershell
$uri = "https://ntfy.example.com/mysecrets"
$credentials = 'username:password'
$encodedcredentials = [convert]::ToBase64String([text.Encoding]::UTF8.GetBytes($Credentials))
$headers = @{Authorization="Basic $encodedcredentials"}
$encodedCredentials = [convert]::ToBase64String([text.Encoding]::UTF8.GetBytes($credentials))
$headers = @{Authorization="Basic $encodedCredentials"}
$message = "Look ma, with auth"
invoke-RestMethod -Uri $uri -Body $message -Headers $headers -Method "Post" -UseBasicParsing
Invoke-RestMethod -Uri $uri -Body $message -Headers $headers -Method "Post" -UseBasicParsing
```
=== "Python"

View File

@ -46,6 +46,7 @@ to [@Joeharrison94](https://github.com/Joeharrison94) for the input.
* Improved caddy configuration (no ticket, thanks to @Stnby)
* Additional multi-line examples on the [publish page](https://ntfy.sh/docs/publish/) ([#234](https://github.com/binwiederhier/ntfy/pull/234), thanks to [@aTable](https://github.com/aTable))
* Fixed PowerShell auth example to use UTF-8 ([#242](https://github.com/binwiederhier/ntfy/pull/242), thanks to [@SMAW](https://github.com/SMAW))
**Additional translations:**