diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-13 15:48:38 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-13 15:48:38 -0800 |
commit | 317dcbdda41cafbd5a330602b38b9a52fab5ec6f (patch) | |
tree | 23be361cc3d69a33d2aa88bf49c6586ff44b7afa /system/admin/handlers.go | |
parent | af31558e3d90b887758d9266c5ba80f0d9eaf3dc (diff) |
adding test in CORS middleware in fix for start
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 2 |
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) } |