mamantoha / http_proxy

A HTTP Proxy server and client written in Crystal
MIT License
39 stars 6 forks source link

Allow to set HTTP headers for proxy client #23

Closed iaddict closed 3 years ago

iaddict commented 3 years ago

This small change allows to set arbitrary HTTP headers for a proxy client which uses TLS.

A default User-Agent header will be automatically configured when not supplied. This is especially useful in environments where the upstream proxy checks the user agent.

mamantoha commented 3 years ago

LGTM.

Thanks @iaddict 🙏

iaddict commented 3 years ago

Many thanks for this great and much required library! Great that you merged my pull request so fast. 😄