summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-29 23:34:26 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-29 23:34:26 -0800
commit5ce7fad2f26878c4dc7c1e73dcc295f12bd6b7d7 (patch)
tree80a33c90a1b9430d8444b416a574a6b3e2bc0439 /system/api/handlers.go
parent8e2f27efb98c838b215bc1512ae56ddcbd356144 (diff)
adding req as param to push, initially to get URL Path for http.Pusher#Push
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r--system/api/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index a01f3dc..40a4a1d 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -115,7 +115,7 @@ func contentHandler(res http.ResponseWriter, req *http.Request) {
return
}
- defer push(res, pt, post)
+ defer push(res, req, pt, post)
j, err := fmtJSON(json.RawMessage(post))
if err != nil {