get-hostname.js 403 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.getHostname = getHostname;
  6. function getHostname(parsed, headers) {
  7. var ref;
  8. return (ref = !Array.isArray(headers == null ? void 0 : headers.host) && (headers == null ? void 0 : headers.host) || parsed.hostname) == null ? void 0 : ref.split(':')[0].toLowerCase();
  9. }
  10. //# sourceMappingURL=get-hostname.js.map