Compare commits
No commits in common. "master" and "v0.9.0" have entirely different histories.
@ -11,11 +11,6 @@ type BasicAuth struct {
|
|||||||
pw string
|
pw string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDigestAuth creates a new instance of our Digest Authenticator
|
|
||||||
func NewBasicAuth(login, secret string) (Authenticator, error) {
|
|
||||||
return &BasicAuth{user: login, pw: secret}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Authorize the current request
|
// Authorize the current request
|
||||||
func (b *BasicAuth) Authorize(c *http.Client, rq *http.Request, path string) error {
|
func (b *BasicAuth) Authorize(c *http.Client, rq *http.Request, path string) error {
|
||||||
rq.SetBasicAuth(b.user, b.pw)
|
rq.SetBasicAuth(b.user, b.pw)
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
d "git.siteop.biz/shoopea/gowebdav"
|
d "github.com/studio-b12/gowebdav"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module git.siteop.biz/shoopea/gowebdav
|
module github.com/studio-b12/gowebdav
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
Loading…
x
Reference in New Issue
Block a user