summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-09-21 01:58:59 -0700
committerSteve Manuel <nilslice@gmail.com>2016-09-21 01:58:59 -0700
commit2c84dd21f24fe68ccd0b0cfcb0d7cb683701ef8b (patch)
tree67e8eb70451c799aaa4680eb6ee8239efcfdf531
parenta9443c6feb05a0e9306b0347ccf381ecd8822358 (diff)
fixing uncaught type reassignment error
-rw-r--r--system/server.go4
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)
}
})