ggrossetie / unxhr

Synchronous and asynchronous XMLHttpRequest for Node
MIT License
0 stars 3 forks source link

Add support for `http_proxy`/`no_proxy` env variables in Node.js #99

Open slonopotamus opened 1 year ago

slonopotamus commented 1 year ago

When running asciidoctor-kroki in Node.js environment, it ignores http_proxy/no_proxy env variables. Cause: https://github.com/nodejs/node/issues/8381

Note that when asciidoctor-kroki is run through Ruby, proxy vars are properly respected.

ggrossetie commented 1 year ago

It's a shame... I guess we could implement the same logic as: https://gitlab.com/antora/antora/-/blob/main/packages/content-aggregator/lib/git-plugin-http.js#L32-46 using https://github.com/delvedor/hpagent

Since unxhr is used in Opal, I need to check if it's OK to add a dependency.