Browse Source

Don't include ? in token generation

master
Matt Baer 1 year ago
parent
commit
5cdea67681
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      capture.go

+ 1
- 1
capture.go View File

@@ -34,7 +34,7 @@ func (c *Client) Capture(cp *CaptureParams) string {
// Calculate token
h := md5.New()
ue, _ := url.QueryUnescape(u.RawQuery)
io.WriteString(h, "?"+ue)
io.WriteString(h, ue)
io.WriteString(h, c.Secret)
token := hex.EncodeToString(h.Sum(nil))



Loading…
Cancel
Save