update to caddy 0.9b2

This commit is contained in:
Henrique Dias
2016-06-22 21:32:33 +01:00
parent 886f396d8f
commit 67f475ce42
3 changed files with 19 additions and 8 deletions

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"path/filepath"
@@ -36,8 +35,6 @@ func (h Hugo) POST(w http.ResponseWriter, r *http.Request, filename string) (int
rawBuffer.ReadFrom(r.Body)
err := json.Unmarshal(rawBuffer.Bytes(), &data)
fmt.Println(string(rawBuffer.Bytes()))
if err != nil {
return RespondJSON(w, &response{"Error decrypting json."}, http.StatusInternalServerError, err)
}