UNPKG

unblocker

Version:

Web proxy for evading internet censorship & general-purpose library for rewriting remote websites.

10 lines (7 loc) 178 B
"use strict"; var URL = require("url"); module.exports = function (/*config*/) { return function hostHeader(data) { data.headers.host = URL.parse(data.url).host; }; };