Skip to content

Commit

Permalink
fix some hk camera auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
macbookpro committed Jan 11, 2019
2 parents eb90c20 + ee5a55f commit 99fa3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtsp/rtsp-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 99fa3f7

Please sign in to comment.