-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from gorilla/compare-token-fix
[bugfix] Compare token fix - subtle.ConstantTimeCompare did not check for matching slice lengths prior to Go 1.3 (fixed in https://codereview.appspot.com/118750043). - gorilla/csrf was released a year after this came into place. - Our TravisCI tests did not test against older versions of Go, and this wasn't caught as a result. - Have added Go 1.2 and Go 1.3 to the TravisCI config to address any future regressions.
- Loading branch information
Showing
3 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
language: go | ||
sudo: false | ||
go: | ||
- 1.4 | ||
- 1.5 | ||
- tip | ||
|
||
matrix: | ||
include: | ||
- go: 1.2 | ||
- go: 1.3 | ||
- go: 1.4 | ||
- go: 1.5 | ||
- go: tip | ||
|
||
install: | ||
- go get golang.org/x/tools/cmd/vet | ||
|
||
script: | ||
- go get -t -v ./... | ||
- diff -u <(echo -n) <(gofmt -d -s .) | ||
- diff -u <(echo -n) <(gofmt -d .) | ||
- go tool vet . | ||
- go test -v -race ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters