Fix based on best practices from Effective Go

Signed-off-by: CodeLingo Bot <bot@codelingo.io>
This commit is contained in:
CodeLingo Bot 2019-03-14 15:47:11 +13:00
parent eec8e4f8e6
commit fc13b491c7

2
rss.go
View file

@ -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},