diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-09-21 01:58:59 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-09-21 01:58:59 -0700 |
commit | 2c84dd21f24fe68ccd0b0cfcb0d7cb683701ef8b (patch) | |
tree | 67e8eb70451c799aaa4680eb6ee8239efcfdf531 /system/server.go | |
parent | a9443c6feb05a0e9306b0347ccf381ecd8822358 (diff) |
fixing uncaught type reassignment error
Diffstat (limited to 'system/server.go')
-rw-r--r-- | system/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/server.go b/system/server.go index d529d31..3d22b1d 100644 --- a/system/server.go +++ b/system/server.go @@ -70,8 +70,8 @@ func main() { scheme := req.URL.Scheme host := req.URL.Host path := req.URL.Path - id = fmt.Sprintf("%d", id) - desURL := scheme + host + path + "?type=" + t + "&id=" + id + sid := fmt.Sprintf("%d", id) + desURL := scheme + host + path + "?type=" + t + "&id=" + sid http.Redirect(res, req, desURL, http.StatusFound) } }) |