mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
UTF-8 headers
This commit is contained in:
parent
91d2603fe0
commit
cfa8d92af1
4 changed files with 33 additions and 5 deletions
|
@ -5,11 +5,14 @@ import (
|
|||
"fmt"
|
||||
"heckel.io/ntfy/util"
|
||||
"io"
|
||||
"mime"
|
||||
"net/http"
|
||||
"net/netip"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var mimeDecoder mime.WordDecoder
|
||||
|
||||
func readBoolParam(r *http.Request, defaultValue bool, names ...string) bool {
|
||||
value := strings.ToLower(readParam(r, names...))
|
||||
if value == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue