Skip to content

Commit

Permalink
fix file name hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stein Fletcher committed Feb 13, 2019
1 parent d383618 commit da2d54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apitest.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,10 @@ func createHash(meta map[string]interface{}) string {
path := meta["path"]
method := meta["method"]
name := meta["name"]
host := meta["host"]
app := meta["app"]

prefix := fnv.New32a()
_, err := prefix.Write([]byte(fmt.Sprintf("%s%s%s", host, strings.ToUpper(method.(string)), path)))
_, err := prefix.Write([]byte(fmt.Sprintf("%s%s%s", app, strings.ToUpper(method.(string)), path)))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit da2d54c

Please sign in to comment.