Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: hunter007 <[email protected]>
  • Loading branch information
hunter007 committed Sep 20, 2023
1 parent 0cc2de4 commit 3a3b7bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/hunter007/password

go 1.16
go 1.13

require golang.org/x/crypto v0.9.0
4 changes: 2 additions & 2 deletions validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package password

import (
"errors"
"io"
"io/ioutil"
"net/http"
"strings"
"unicode"
Expand Down Expand Up @@ -38,7 +38,7 @@ func (opt *ValidatorOption) loadCommonPasswords() error {
}
defer resp.Body.Close()

bs, err := io.ReadAll(resp.Body)
bs, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
Expand Down

0 comments on commit 3a3b7bd

Please sign in to comment.