gin-gonic / gin

Compare 46ddd42 ... +0 ... b01605b

Showing 1 of 1 files from the diff.

@@ -5,6 +5,7 @@
Loading
5 5
package gin
6 6
7 7
import (
8 +
	"crypto/subtle"
8 9
	"encoding/base64"
9 10
	"net/http"
10 11
	"strconv"
@@ -30,7 +31,7 @@
Loading
30 31
		return "", false
31 32
	}
32 33
	for _, pair := range a {
33 -
		if pair.value == authValue {
34 +
		if subtle.ConstantTimeCompare([]byte(pair.value), []byte(authValue)) == 1 {
34 35
			return pair.user, true
35 36
		}
36 37
	}

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
binding 100.00%
render 92.96%
auth.go 100.00%
context.go 97.51%
debug.go 100.00%
deprecated.go 100.00%
errors.go 100.00%
fs.go 100.00%
gin.go 99.01%
logger.go 100.00%
mode.go 100.00%
path.go 100.00%
recovery.go 97.18%
response_writer.go 93.33%
routergroup.go 100.00%
test_helpers.go 100.00%
tree.go 100.00%
utils.go 96.83%
Project Totals (41 files) 98.64%
Loading