SReject / JSON-For-Mirc

JSON parser for mIRC
19 stars 6 forks source link

added k switch for insecure certs #52

Closed silv3rr closed 4 years ago

silv3rr commented 4 years ago

Hi @SReject,

Thanks for JFM, i've used it in 2 scripts now and works nicely. I also like how in the new versions the JS part is formatted in seperate file.

For an API on localhost with selfsigned cert I got a (expected) cert error "The certificate authority is invalid or incorrect". I could not find an option to disable cert checking so a I added a "k" switch to JSONOpen (like curl -k).

The Tests script passed and I've added tests for -k without -u" switch and 2 for JSONOpen and a known bad cert with/without "-k".

silv3rr commented 4 years ago

Applied required changes and fixed merge issues

SReject commented 4 years ago

Merged, thanks for the help!