mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-08 22:14:43 +02:00
Support encoding any header as RFC 2047
This commit is contained in:
parent
b3a299ce22
commit
168ad8bf1b
6 changed files with 38 additions and 15 deletions
server
|
@ -50,7 +50,7 @@ func readParam(r *http.Request, names ...string) string {
|
|||
|
||||
func readHeaderParam(r *http.Request, names ...string) string {
|
||||
for _, name := range names {
|
||||
value := r.Header.Get(name)
|
||||
value := maybeDecodeHeader(r.Header.Get(name))
|
||||
if value != "" {
|
||||
return strings.TrimSpace(value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue