aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 80c5f31..e48230b 100644
--- a/main.go
+++ b/main.go
@@ -44,7 +44,11 @@ func main() {
if err != nil {
return err
}
- return c.Blob(200, "image/png", img)
+ blob, err := static.AsBytes(img)
+ if err != nil {
+ return err
+ }
+ return c.Blob(200, "image/png", blob)
})
log.Fatal(e.Start(":8000"))
}