svenvc / zinc

Zinc HTTP Components is an open-source Smalltalk framework to deal with the HTTP networking protocol.
MIT License
96 stars 56 forks source link

Error when using HTTP with Proxy #119

Closed JanBliznicenko closed 1 year ago

JanBliznicenko commented 1 year ago

When Proxy is set up in Pharo and user attempts to connect using HTTP instead of HTTPS, it ends up with error where ZnUrl>>#printAuthorityOn: attempts to send message print: to ZnBivalentWriteStream that does not have that method.

I do not use Proxy myself, just forwarding the info. It can be somehow simulated if you replace condition on proxy in ZnRequestLine>>#writeOn: by hardcoded true.

Tested in Pharo 10 and 12 on Windows.

screenshot

Note that the code works when I replace http:// by https://.

svenvc commented 1 year ago

https://github.com/svenvc/zinc/commit/3f7900abec0ad9164a4d587018899eb3247a5f12