diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-02-09 09:37:44 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-02-09 09:37:44 -0800 |
commit | 6ea648ae4306e64f5562ca363e0cdea494ba8d46 (patch) | |
tree | 329d21c66007778be1367862ba346c84b55a748e /system/api/push.go | |
parent | 7a85b284dec2bbb462969fb7e9e949b1a2ae720a (diff) |
remove req.URL.Path from the push target so non-content paths like uploads can be pushed too
Diffstat (limited to 'system/api/push.go')
-rw-r--r-- | system/api/push.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/push.go b/system/api/push.go index 5db0a53..b7c5642 100644 --- a/system/api/push.go +++ b/system/api/push.go @@ -23,7 +23,7 @@ func push(res http.ResponseWriter, req *http.Request, pt func() interface{}, dat for i := range values { val := values[i] val.ForEach(func(k, v gjson.Result) bool { - err := pusher.Push(req.URL.Path+v.String(), nil) + err := pusher.Push(v.String(), nil) if err != nil { log.Println("Error during Push of value:", v.String()) } |