From 040bb533835fd48ecf5260b14b4a218b17457ea1 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Sat, 7 May 2022 13:47:34 -0400 Subject: [PATCH] Changelog --- docs/publish.md | 6 +++--- docs/releases.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/publish.md b/docs/publish.md index a63c61bb..69d162d0 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -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" diff --git a/docs/releases.md b/docs/releases.md index a1bda1d8..a1e1c0ec 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -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:**