next
Version:
The React Framework
11 lines (10 loc) • 403 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getHostname = getHostname;
function getHostname(parsed, headers) {
var ref;
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();
}
//# sourceMappingURL=get-hostname.js.map
;