1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Latest build embed assets

This commit is contained in:
Harvey Kandola 2018-10-26 14:41:26 +01:00
parent eb57cfbfd6
commit 6e4c5194e2
2 changed files with 668 additions and 665 deletions

View file

@ -102,6 +102,9 @@ func (h *Handler) Backup(w http.ResponseWriter, r *http.Request) {
// Read backup file into memory. // Read backup file into memory.
// DEBT: write file directly to HTTP response stream? // DEBT: write file directly to HTTP response stream?
// defer out.Close()
// io.Copy(out, resp.Body)
bk, err := ioutil.ReadFile(filename) bk, err := ioutil.ReadFile(filename)
if err != nil { if err != nil {
response.WriteServerError(w, method, err) response.WriteServerError(w, method, err)

File diff suppressed because one or more lines are too long