diff options
| author | Russ Cox <rsc@golang.org> | 2014-12-23 16:36:44 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-12-23 21:38:27 +0000 |
| commit | d253e69a2fd1e3da8057dc9b6dcfb08d70495cb8 (patch) | |
| tree | 7cf509428106db398a5feb348f22d0524adbb795 /git-codereview/api.go | |
| parent | 4a9b48bf245380ef5427c95d362a553ddbd780a7 (diff) | |
| download | go-x-review-d253e69a2fd1e3da8057dc9b6dcfb08d70495cb8.tar.xz | |
git-codereview: fix loadAuth bug from CL 1771
I have a test for this code now. The test found this.
The test will be sent in a different, non-TBR CL.
Change-Id: I98f5bc22577d7aded284ab9d1bf4fe68b10c2b87
Reviewed-on: https://go-review.googlesource.com/2112
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'git-codereview/api.go')
| -rw-r--r-- | git-codereview/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-codereview/api.go b/git-codereview/api.go index f6bda31..5ccc358 100644 --- a/git-codereview/api.go +++ b/git-codereview/api.go @@ -93,6 +93,7 @@ func loadAuth() { if len(f[0]) > maxMatch { auth.cookieName = f[5] auth.cookieValue = f[6] + maxMatch = len(f[0]) } } } |
