File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 22package auth
33
44import (
5+ "context"
56 "net/http"
6-
7- "golang.org/x/net/context"
87)
98
109// AuthenticatedRequest is passed to AuthenticatedHandlerFunc instead
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package auth
22
33import (
44 "bytes"
5+ "context"
56 "crypto/sha1"
67 "crypto/subtle"
78 "encoding/base64"
@@ -10,7 +11,6 @@ import (
1011 "strings"
1112
1213 "golang.org/x/crypto/bcrypt"
13- "golang.org/x/net/context"
1414)
1515
1616type compareFunc func (hashedPassword , password []byte ) error
Original file line number Diff line number Diff line change 11package auth
22
33import (
4+ "context"
45 "crypto/subtle"
56 "fmt"
67 "net/http"
@@ -10,8 +11,6 @@ import (
1011 "strings"
1112 "sync"
1213 "time"
13-
14- "golang.org/x/net/context"
1514)
1615
1716type digestClient struct {
Original file line number Diff line number Diff line change 1111package main
1212
1313import (
14+ "context"
1415 "fmt"
1516 "net/http"
1617
1718 auth ".."
18- "golang.org/x/net/context"
1919)
2020
2121func secret (user , realm string ) string {
You can’t perform that action at this time.
0 commit comments