UNPKG

got-scraping

Version:

HTTP client made for scraping based on got.

18 lines 759 B
"use strict"; /* eslint-disable no-underscore-dangle */ Object.defineProperty(exports, "__esModule", { value: true }); exports.insecureParserHook = void 0; function insecureParserHook(options) { if (options.context.insecureHTTPParser !== undefined) { // `insecureHTTPParser` is not an allowed HTTP option in Got, // so we must inject it directly into the Got internals for Node.js `http` module to use it. // @ts-expect-error Private use options._unixOptions = { // @ts-expect-error Private use ...options._unixOptions, insecureHTTPParser: options.context.insecureHTTPParser, }; } } exports.insecureParserHook = insecureParserHook; //# sourceMappingURL=insecure-parser.js.map