diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-01-16 11:05:28 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-01-16 14:44:15 +0100 |
commit | f13531e608ac36cce9d679f6742a112cbab8afd1 (patch) | |
tree | c6cca6537b83f837e6fd22da559d2fb483799dc7 /media/mediaType_test.go | |
parent | b5d485060fc5f6222e730e5f59f7946b4602c7c6 (diff) |
Fix HEAD method in resources.GetRemote
Fixes #10604
Diffstat (limited to 'media/mediaType_test.go')
-rw-r--r-- | media/mediaType_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go index 2a1b48849..3d12c31bb 100644 --- a/media/mediaType_test.go +++ b/media/mediaType_test.go @@ -132,22 +132,22 @@ func TestGetFirstBySuffix(t *testing.T) { func TestFromTypeString(t *testing.T) { c := qt.New(t) - f, err := fromString("text/html") + f, err := FromString("text/html") c.Assert(err, qt.IsNil) c.Assert(f.Type(), qt.Equals, HTMLType.Type()) - f, err = fromString("application/custom") + f, err = FromString("application/custom") c.Assert(err, qt.IsNil) c.Assert(f, qt.Equals, Type{MainType: "application", SubType: "custom", mimeSuffix: ""}) - f, err = fromString("application/custom+sfx") + f, err = FromString("application/custom+sfx") c.Assert(err, qt.IsNil) c.Assert(f, qt.Equals, Type{MainType: "application", SubType: "custom", mimeSuffix: "sfx"}) - _, err = fromString("noslash") + _, err = FromString("noslash") c.Assert(err, qt.Not(qt.IsNil)) - f, err = fromString("text/xml; charset=utf-8") + f, err = FromString("text/xml; charset=utf-8") c.Assert(err, qt.IsNil) c.Assert(f, qt.Equals, Type{MainType: "text", SubType: "xml", mimeSuffix: ""}) |