Fix based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
This commit is contained in:
parent
eec8e4f8e6
commit
fc13b491c7
1 changed files with 1 additions and 1 deletions
2
rss.go
2
rss.go
|
@ -94,7 +94,7 @@ func Read(url string) (*Channel, error) {
|
|||
return ReadWithClient(url, http.DefaultClient)
|
||||
}
|
||||
|
||||
//Read without certificate check
|
||||
//InsecureRead reads without certificate check
|
||||
func InsecureRead(url string) (*Channel, error) {
|
||||
tr := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
|
|
Loading…
Reference in a new issue