docs: private static URI extractRedirectLocation(HttpMessage message) throws InvalidRedirectLocationException {
          String location = message.getResponseHeader().getHeader(HttpHeader.LOCATION);
          if (location == null) {
              if (log.isDebugEnabled()) {
                  log.debug("No Location header found: " + message.getResponseHeader());
              }
              return null;
          }
  
          try {
              return new URI(message.getRequestHeader().getURI(), location, true);
          } catch (URIException ex) {
              throw new InvalidRedirectLocationException("Invalid redirect location: " + location, location, ex);
          }
      }