No more funny business with InsecureSkipVerify
This commit is contained in:
@@ -2,17 +2,11 @@ package main
|
||||
|
||||
import "log"
|
||||
import "net/http"
|
||||
import "crypto/tls"
|
||||
import "hnakra/service"
|
||||
|
||||
func main () {
|
||||
http.HandleFunc("/hello/", hellorld)
|
||||
err := (&service.HTTP { Mount: service.MountConfig {
|
||||
Path: "/hello/",
|
||||
Name: "Hellorld",
|
||||
Description: "A test service.",
|
||||
TLSConfig: &tls.Config { InsecureSkipVerify: true },
|
||||
}}).Run()
|
||||
err := service.NewHTTP("Hellorld", "A test service.", "@", "/hello/").Run()
|
||||
|
||||
if err != nil {
|
||||
log.Println("XXX", err)
|
||||
|
||||
Reference in New Issue
Block a user