summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/edit/dir.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/edit/dir.go b/src/edit/dir.go
index bc6ef6c..c1e7cca 100644
--- a/src/edit/dir.go
+++ b/src/edit/dir.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"time"
+ "io/ioutil"
"net/http"
"path"
"strings"
@@ -52,7 +53,8 @@ func ServeGit(out http.ResponseWriter, in *http.Request) {
if msg == "" {
msg = fmt.Sprintf("web edit: create/modify %q", upath)
}
- var content []byte // TODO
+ content, err := ioutil.ReadAll(in.Body)
+ errcheck(err)
edit := Edit{
UserName: userinfo.Name,
UserEmail: username+"@edit.team4272.com",