From faf6b653bf00eb20c1804fbacee3557847014abb Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 11 Mar 2017 13:17:09 -0800 Subject: oops didn't realize you were requiring the title and artist field in the AcceptUpdate method, adding it back to the log statement --- examples/updateable/content/song.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/updateable') 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 } -- cgit v1.2.3