code: func normalizeLocation(location *url.URL) *url.URL {
  	normalized, _ := url.Parse(location.String())
  	if len(normalized.Scheme) == 0 {
  		normalized.Scheme = "http"
  	}
  	return normalized
  }
docs: // normalizeLocation returns the result of parsing the full URL, with scheme set to http if missing