http.NewRequest
request send to http://
URLs GO-S1028Requests sent via http.NewRequest
to http://
URLs is dangerous because the
server is attempting to connect to a website that does not encrypt traffic with
TLS. Instead, it is recommended to use https://
.
req, err := http.NewRequest("GET", "http://deepsource.io", nil)
req, err := http.NewRequest("GET", "https://deepsource.io", nil)