From d167a89638b4eecad852c66385737ef89354ec99 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Wed, 23 Sep 2015 22:46:47 +0100 Subject: post /caches now returns created object --- files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files.go') diff --git a/files.go b/files.go index f1a3d6c..2effe6e 100644 --- a/files.go +++ b/files.go @@ -9,8 +9,8 @@ func writeFile(postcache PostCache, filename string) error { data := postcache.Data var binary []byte - n, err := base64.StdEncoding.Decode(binary, []byte(data)) - if n == 0 || err != nil { + binary, err := base64.StdEncoding.DecodeString(data) + if err != nil { return err } -- cgit v1.2.1