diff options
| author | Steve <nilslice@gmail.com> | 2017-03-11 13:17:09 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-11 13:17:09 -0800 |
| commit | faf6b653bf00eb20c1804fbacee3557847014abb (patch) | |
| tree | 2ec2762536337ac9511d814f1cdec85fa9951f7d | |
| parent | 88d0ebf9d6dd764c82a4a8ac702064e7f504bc25 (diff) | |
oops
didn't realize you were requiring the title and artist field in the AcceptUpdate method, adding it back to the log statement
| -rw-r--r-- | examples/updateable/content/song.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/updateable/content/song.go b/examples/updateable/content/song.go index 75d51ca..b14b8dd 100644 --- a/examples/updateable/content/song.go +++ b/examples/updateable/content/song.go @@ -136,7 +136,7 @@ func (s *Song) BeforeAcceptUpdate(res http.ResponseWriter, req *http.Request) er // request. func (s *Song) AfterAcceptUpdate(res http.ResponseWriter, req *http.Request) error { addr := req.RemoteAddr - log.Println("Song updated by:", addr) + log.Println("Song updated by:", addr, "with title", req.PostFormValue("title")) return nil } |
