summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 7e815fb..f846717 100644
--- a/main.go
+++ b/main.go
@@ -188,8 +188,8 @@ func (h *SiteHandler) handlePOST(w http.ResponseWriter, r *http.Request, meta ma
id, key := meta["id"].(string), meta["key"].(string)
if err := os.WriteFile(
- filepath.Join(h.path, id+".json"),
- raw_data,
+ filepath.Join(h.path, id + ".json"),
+ append(raw_data, '\n'),
0644,
); err != nil {
return err