Philipp Heckel %!s(int64=3) %!d(string=hai) anos
pai
achega
040bb53383
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 3 3
      docs/publish.md
  2. 1 0
      docs/releases.md

+ 3 - 3
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"

+ 1 - 0
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:**