No more funny business with InsecureSkipVerify
This commit is contained in:
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import "log"
|
||||
import "net/http"
|
||||
import "crypto/tls"
|
||||
import "hnakra/service"
|
||||
|
||||
func main () {
|
||||
@@ -15,12 +14,9 @@ func main () {
|
||||
http.ServeFile(res, req, "fractal.png")
|
||||
})
|
||||
|
||||
err := (&service.HTTP { Mount: service.Mount {
|
||||
Path: "/fractal.png",
|
||||
Name: "Image",
|
||||
Description: "Displays an image of a fractal.",
|
||||
TLSConfig: &tls.Config { InsecureSkipVerify: true },
|
||||
}}).Run()
|
||||
|
||||
err := service.NewHTTP (
|
||||
"Image",
|
||||
"Displays an image of a fractal.",
|
||||
"@", "/fractal.png").Run()
|
||||
if err != nil { log.Println("XXX", err) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user