UNPKG

alagarr

Version:

Alagarr is a request-response helper library that removes the boilerplate from your Node.js serverless functions and helps make your code portable.

7 lines (6 loc) 251 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function setHostname(request) { return Object.assign({}, request, { hostname: (request.headers && request.headers.host) || undefined }); } exports.default = setHostname;