Skip to content

Commit 61f57d1

Browse files
committed
update main
1 parent c30d453 commit 61f57d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ func checkurl(url string, content string, len string) {
113113
resp, err := httpcc.Head(url)
114114

115115
if err != nil {
116+
if strings.Contains(err.Error(), "http: server gave HTTP response to HTTPS clien") {
117+
os.Exit(3)
118+
}
116119
println(err.Error())
120+
117121
resp, err = httpcc.Get(url)
118122

119123
}

0 commit comments

Comments
 (0)