From e8953aea3b06f59c7f93d72d1c8cc6d63de929ad Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Fri, 1 Jul 2022 09:37:20 -0400 Subject: [PATCH] Fix test, changelog --- docs/releases.md | 1 + util/util_test.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releases.md b/docs/releases.md index 50f89b7..90c479a 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -35,6 +35,7 @@ Thank you to [@wunter8](https://github.com/wunter8) for proactively picking up s **Bugs:** * `ntfy user` commands don't work with `auth_file` but works with `auth-file` ([#344](https://github.com/binwiederhier/ntfy/issues/344), thanks to [@Histalek](https://github.com/Histalek) for reporting) +* Ignore new draft HTTP `Priority` header ([#351](https://github.com/binwiederhier/ntfy/issues/351), thanks to [@ksurl](https://github.com/ksurl) for reporting) **Documentation:** diff --git a/util/util_test.go b/util/util_test.go index 8cecd00..e63be2c 100644 --- a/util/util_test.go +++ b/util/util_test.go @@ -70,7 +70,6 @@ func TestParsePriority_Invalid(t *testing.T) { func TestParsePriority_HTTPSpecPriority(t *testing.T) { priorities := []string{"u=1", "u=3", "u=7, i"} // see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-priority for _, priority := range priorities { - _, err := ParsePriority(priority) actual, err := ParsePriority(priority) require.Nil(t, err) require.Equal(t, 3, actual) // Always expect 3!