code: func downloadRemote(remoteURL string) (string, io.ReadCloser, error) {
  	response, err := GetWithStatusError(remoteURL)
  	if err != nil {
  		return "", nil, errors.Wrapf(err, "error downloading remote context %s", remoteURL)
  	}
  
  	contentType, contextReader, err := inspectResponse(
  		response.Header.Get("Content-Type"),
  		response.Body,
  		response.ContentLength)
  	if err != nil {
  		response.Body.Close()
  		return "", nil, errors.Wrapf(err, "error detecting content type for remote %s", remoteURL)
  	}
  
  	return contentType, ioutils.NewReadCloserWrapper(contextReader, response.Body.Close), nil
  }
docs: // downloadRemote context from a url and returns it, along with the parsed content type