fix some hk camera auth error

pull/132/head
macbookpro 2019-01-11 21:49:56 +08:00
commit 99fa3f7093
1 changed files with 2 additions and 2 deletions

View File

@ -100,10 +100,10 @@ func DigestAuth(authLine string, method string, URL string) (string, error) {
}
realm := ""
nonce := ""
realmRex := regexp.MustCompile(`realm="(\S+)"`)
realmRex := regexp.MustCompile(`realm="(.*?)"`)
result1 := realmRex.FindStringSubmatch(authLine)
nonceRex := regexp.MustCompile(`nonce="(\S+)"`)
nonceRex := regexp.MustCompile(`nonce="(.*?)"`)
result2 := nonceRex.FindStringSubmatch(authLine)
if len(result1) == 2 {