summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-13 15:48:38 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-13 15:48:38 -0800
commit317dcbdda41cafbd5a330602b38b9a52fab5ec6f (patch)
tree23be361cc3d69a33d2aa88bf49c6586ff44b7afa /system/admin/handlers.go
parentaf31558e3d90b887758d9266c5ba80f0d9eaf3dc (diff)
adding test in CORS middleware in fix for start
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index 00add87..2bea356 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -1533,7 +1533,7 @@ func editHandler(res http.ResponseWriter, req *http.Request) {
// create a timestamp if one was not set
if ts == "" {
- ts := fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UnixNano()/int64(time.Millisecond))
+ ts = fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UnixNano()/int64(time.Millisecond))
req.PostForm.Set("timestamp", ts)
}