From 2823b2729b8165c342773ed8122033337660fade Mon Sep 17 00:00:00 2001 From: "Raymond E. Pasco" Date: Tue, 2 Mar 2021 14:00:12 -0500 Subject: [PATCH] Change PNG aura from @t to @ No PNG is (sane %t) - the PNG header alone isn't. This should also be octs, not an atom, as a binary filetype - it works for PNG purely by coincidence (no valid PNG can end with a sequence of 00 bytes, because they have to end with 00 00 00 00 49 45 4e 44 ae 42 60 82). --- pkg/arvo/mar/png.hoon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/mar/png.hoon b/pkg/arvo/mar/png.hoon index e68e502cd1..6a60a6a27b 100644 --- a/pkg/arvo/mar/png.hoon +++ b/pkg/arvo/mar/png.hoon @@ -1,4 +1,4 @@ -|_ dat=@t +|_ dat=@ ++ grow |% ++ mime [/image/png (as-octs:mimes:html dat)] @@ -6,7 +6,7 @@ ++ grab |% ++ mime |=([p=mite q=octs] q.q) - ++ noun @t + ++ noun @ -- ++ grad %mime --