treeform / puppy

Puppy fetches via HTTP and HTTPS
MIT License
184 stars 27 forks source link

add allowAnyHttpsCertificate flag on Request #79

Closed guzba closed 1 year ago

guzba commented 1 year ago

I was working through https://github.com/treeform/puppy/pull/68 and have concluded that we should not add this to the NS-side of Mac Puppy. Mac can still use -d:puppyLibcurl to have this flag.

Our Mac internals use the old and deprecated (but working great) HTTP APIs from Apple. There is no public API way of setting the flag mentioned in the linked PR. It has also been removed from what I can tell, crashing when attempting to call request.setAllowsAnyHTTPSCertificate(true, @url.host). Not a big deal. Those that need this flag can just use the define for the time being.